/* home.css - Ultra Premium Landing Page for InnovaTex */

:root {
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #90D6BC;
    /* Mint Green */
    --accent-secondary: #0d9488;
    /* Deep Teal */
    --accent-gradient: linear-gradient(135deg, #90D6BC 0%, #0d9488 100%);
    --accent-light: rgba(144, 214, 188, 0.15);
    --border-color: rgba(255, 255, 255, 0.5);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-glow: 0 0 20px rgba(144, 214, 188, 0.4);

    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Dynamic Animated Background Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(at 0% 0%, rgba(144, 214, 188, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(144, 214, 188, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(13, 148, 136, 0.15) 0px, transparent 50%);
    background-color: #f8fafc;
}

/* Navbar (Glassmorphism) */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-glass);
    border: 3px solid white;
}

.brand h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    gap: 5rem;
    position: relative;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--accent-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glass);
}

.hero-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-content h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(144, 214, 188, 0.5);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -5px rgba(144, 214, 188, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid white;
    box-shadow: var(--shadow-glass);
}

.btn-outline:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1.2s ease-out forwards;
}

.main-image {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    border: 8px solid white;
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 5s ease-in-out infinite alternate;
}

.floating-card.top-right {
    top: 5%;
    right: -10%;
    animation-delay: 1s;
}

.floating-card.bottom-left {
    bottom: 10%;
    left: -15%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-card div h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.floating-card div p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Portfolio / Masonry Gallery Section */
.portfolio-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
    background: transparent;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-header h2 {
    font-size: 2.9rem !important;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.portfolio-header h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    cursor: pointer;
    border: 6px solid rgba(255, 255, 255, 0.8);
    background: white;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.masonry-item:hover .masonry-overlay span {
    transform: translateY(0);
}

/* Info Section */
.info-section {
    padding: 8rem 5%;
    position: relative;
    z-index: 2;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Professional Art Gallery */
.art-gallery {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 8px solid white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    padding: 2rem;
    text-align: left;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-container h3 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.banner-fabricantes {
    background: var(--text-primary);
    color: white;
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.banner-fabricantes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0.1;
    z-index: 0;
}

.banner-fabricantes h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.banner-fabricantes p {
    font-size: 1.2rem;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    text-align: left;
}

.service-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Connect Section (Social & Contact) */
.connect-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at 50% 100%, rgba(144, 214, 188, 0.05) 0%, transparent 50%);
}

.connect-container {
    max-width: 1100px;
    margin: 0 auto;
}

.connect-header {
    text-align: center;
    margin-bottom: 4rem;
}

.connect-header h2 {
    font-size: 3.5rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.connect-header h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.connect-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Instagram Card */
.social-card {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 20px 40px -10px rgba(220, 39, 67, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.social-bg-decor {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite alternate;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px -10px rgba(220, 39, 67, 0.6);
}

.social-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.social-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-info {
    flex-grow: 1;
}

.social-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.social-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    background: white;
    color: #dc2743;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    width: fit-content;
    transition: transform 0.3s ease;
}

.social-card:hover .social-action {
    transform: translateX(10px);
}

/* Contact Card */
.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-glass);
}

.contact-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-whatsapp-lg {
    background: #25D366;
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-lg i {
    font-size: 1.8rem;
}

.btn-whatsapp-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Marquee / Footer Tags */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--text-primary);
    padding: 3rem 0;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 2.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    margin: 0 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.marquee-content span:hover {
    color: white;
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer-bottom {
    background: #0f172a;
    padding: 2rem 5%;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 3.2rem;
    }

    .hero-tag {
        margin: 0 auto 2rem;
    }

    .hero-content>div {
        justify-content: center;
    }

    .floating-card.top-right {
        right: 0;
        top: 0;
    }

    .floating-card.bottom-left {
        left: 0;
        bottom: 0;
    }

    .info-container h3 {
        font-size: 2.2rem;
    }

    .masonry-item.wide {
        grid-column: span 1;
    }

    .portfolio-header h2 {
        font-size: 2.5rem;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    .connect-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .brand img {
        height: 45px;
        width: 45px;
    }

    .brand h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 100px 1.25rem 40px;
        gap: 2rem;
    }

    .hero-content h2 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    .portfolio-section,
    .info-section,
    .connect-section {
        padding: 3.5rem 1.25rem;
    }

    .portfolio-header h2 {
        font-size: 1.8rem;
    }

    .portfolio-header p {
        font-size: 1rem;
    }

    .art-gallery {
        gap: 1.5rem;
    }

    .gallery-item {
        min-width: 100%;
    }

    .info-container h3 {
        font-size: 1.6rem;
    }

    .highlight-text {
        font-size: 1.1rem;
    }

    .banner-fabricantes {
        padding: 1.25rem;
        margin: 2rem 0;
        width: 100%;
    }

    .banner-fabricantes h2 {
        font-size: 1.6rem;
    }

    .banner-fabricantes p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .connect-header h2 {
        font-size: 1.8rem;
    }

    .social-card {
        min-height: auto;
        padding: 1.75rem;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
    }

    .social-info h3 {
        font-size: 1.6rem;
    }

    .contact-card {
        padding: 1.75rem;
    }

    .contact-card h3 {
        font-size: 1.5rem;
    }

    .marquee-content span {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.85rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-image-wrapper .main-image {
        border-width: 4px;
    }

    .floating-card {
        padding: 0.85rem;
        border-radius: var(--radius-lg);
    }

    .floating-card div h5 {
        font-size: 0.9rem;
    }

    .floating-card div p {
        font-size: 0.75rem;
    }

    .portfolio-header h2 {
        font-size: 1.5rem;
    }

    .info-container h3 {
        font-size: 1.4rem;
    }

    .connect-header h2 {
        font-size: 1.5rem;
    }
}