/* ========================================
   GRUPO TEXTILERA VIVA
   Diseño Corporativo — Vibrant Coral Theme
   Hero: Split | About: Minimal Dark
   Contact: Grid Cards | Footer: Centered
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --black-soft: #1a1a1a;
    --gray-900: #111111;
    --gray-800: #222222;
    --gray-700: #333333;
    --gray-600: #444444;
    --gray-500: #555555;
    --gray-400: #666666;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f0f0f0;
    --gray-50: #fafafa;
    --white: #FFFFFF;

    --primary: #E85D4A;
    --primary-hover: #D04535;
    --primary-light: #FDE8E4;
    --accent: #2C3E50;
    --accent-light: #EBF0F5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Scroll Reveal Animations
======================================== */
.reveal-hidden {
    opacity: 0 !important;
    transform: translateY(30px) !important;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ========================================
   Header — Top Accent Stripe
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

header::before {
    content: '';
    display: block;
    height: 4px;
    background: #E85D4A;
}

header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E85D4A;
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--black);
}

nav a:hover::after {
    width: 100%;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E85D4A;
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-header::after {
    display: none;
}

.btn-header:hover {
    background: #D04535;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    transition: transform 0.3s, opacity 0.3s;
}

/* ========================================
   Buttons
======================================== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta-primary {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-cta-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Hero 3: Split Screen
======================================== */
.hero-split {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #3D1A15 0%, #1A0D0A 100%);
}

.hero-split-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 6rem 4rem 4rem;
}

.hero-split-inner {
    max-width: 560px;
    margin-left: auto;
}

.hero-split h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.08;
}

.hero-split p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-split-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-split-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-split-image:hover img {
    transform: scale(1.03);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Sections Common
======================================== */
section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========================================
   About 5: Minimal Text (Dark)
======================================== */
.about-text-minimal {
    background: #FFF5F3;
    color: var(--gray-700);
    padding: 7rem 2rem;
}

.about-minimal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-minimal h2 {
    color: var(--gray-900);
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.about-text-minimal p {
    color: var(--gray-600);
    font-size: 1.15rem;
    line-height: 1.85;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Misión, Visión y Valores
======================================== */
.mvv {
    background: #FAF0EE;
    padding: 6rem 2rem;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mvv-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mvv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.mvv-card:hover::before {
    transform: scaleX(1);
}

.mvv-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.mvv-card:hover .mvv-icon {
    transform: scale(1.08);
}

.mvv-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.mvv-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.mvv-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Beneficios
======================================== */
.beneficios {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.beneficio-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.beneficio-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.beneficio-icon {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.beneficio-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ========================================
   Servicios
======================================== */
.services {
    background: linear-gradient(135deg, #3D1A15 0%, #2A1210 100%);
}

.services .section-eyebrow {
    color: var(--gray-300);
}

.services .section-header h2 {
    color: var(--white);
}

.services .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.services-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.services-detail-col h4 {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.services-detail-col p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

/* ========================================
   Sectores
======================================== */
.sectores {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.sector-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.sector-row:last-child {
    border-bottom: none;
}

.sector-row:nth-child(even) .sector-content {
    order: 2;
}

.sector-row:nth-child(even) .sector-image {
    order: 1;
}

.sector-number {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 1rem;
}

.sector-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.sector-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.sector-image {
    overflow: hidden;
    border-radius: 12px;
}

.sector-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.sector-image:hover img {
    transform: scale(1.04);
}

/* ========================================
   Cifras
======================================== */
.cifras {
    background: #FFF5F3;
    border-bottom: 1px solid var(--gray-200);
}

.cifras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cifra-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cifra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cifra-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cifra-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   CTA
======================================== */
.cta {
    background: linear-gradient(135deg, #E85D4A 0%, #C74333 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -200px;
    right: -100px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta .cta-actions {
    justify-content: center;
}

/* ========================================
   Contact 4: Grid Cards
======================================== */
.contact {
    padding: 0;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.contact-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    border: 1px solid var(--gray-200);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-300);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: var(--primary);
}

.contact-card:hover .contact-card-icon svg {
    color: var(--white);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
}

/* ========================================
   Footer 3: Simple Centered
======================================== */
footer {
    background: linear-gradient(180deg, #2C3E50 0%, #1A252F 100%);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-centered {
    text-align: center;
}

.footer-logo {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.footer-bottom-line p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-split-content {
        padding: 8rem 2rem 4rem;
    }

    .hero-split-inner {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-split-image {
        position: relative;
        min-height: 400px;
    }

    .about-minimal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .services-detail {
        grid-template-columns: 1fr;
    }

    .sector-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sector-row:nth-child(even) .sector-content,
    .sector-row:nth-child(even) .sector-image {
        order: unset;
    }

    .cifras-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--gray-100);
    }

    nav a::after {
        display: none;
    }

    .btn-header {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .header-container {
        position: relative;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero-split h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .about-text-minimal {
        padding: 4rem 1.5rem;
    }

    .about-text-minimal h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    .cta-actions {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

