/* ========================================
   VARIABLES & RESET
======================================== */
:root {
    /* Colores Institucionales */
    --primary: #002B5B;
    --primary-dark: #001a38;
    --primary-light: #003d7a;
    --accent: #E63946;
    --accent-hover: #d32f2f;
    --accent-light: #ff4757;

    /* Paleta Neutra Premium */
    --text: #1a1a2e;
    --text-light: #546e7a;
    --text-lighter: #78909c;
    --bg-light: #f8f9fa;
    --bg-white: #FFFFFF;
    --border: #e0e0e0;

    /* Success/Trust Colors */
    --success: #10b981;
    --warning: #f59e0b;

    /* Shadows Modernos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* UI */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent);
    color: white;
}

/* ========================================
   UTILITIES
======================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
}

strong {
    color: var(--primary);
    font-weight: 600;
}

/* Accent Text */
.text-accent {
    color: var(--accent);
}

.text-success {
    color: var(--success);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background-color: var(--accent);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.25);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.15rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* ========================================
   HEADER
======================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 85px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header > .container {
    height: 100%;
}

header.scrolled {
    height: 75px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
    display: block;
}

header.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.phone-btn {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.phone-btn:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.phone-btn i {
    color: var(--accent);
    font-size: 1.1rem;
}

.header-cta .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-toggle:hover {
    color: var(--accent);
}

/* ========================================
   HERO SECTION - OPTIMIZADO PARA CONVERSIÓN
======================================== */
.hero {
    margin-top: 85px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo sutil */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 43, 91, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

/* Trust Badge Superior */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.trust-badge i {
    font-size: 1rem;
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

/* Stats en Hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
    animation: fadeInUp 1.2s ease;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* CTAs Hero */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    opacity: 0.5;
    z-index: 1;
}

.img-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    aspect-ratio: 4/5;
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Badge flotante en imagen */
.floating-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-badge-title {
    font-size: 0.85rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.floating-badge-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

@keyframes float {

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

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

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* ========================================
   SOCIAL PROOF SECTION
======================================== */
.social-proof {
    background: var(--primary);
    color: white;
    padding: 30px 0;
}

.proof-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-icon {
    font-size: 2rem;
    color: var(--accent);
}

.proof-text {
    text-align: left;
}

.proof-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.proof-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   ABOUT SECTION - REDISEÑADO
======================================== */
.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card h3 i {
    color: var(--accent);
    font-size: 1.5rem;
}

.feature-card p {
    line-height: 1.8;
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.highlight-box h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.highlight-box p {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.highlight-box strong {
    color: var(--accent);
    font-weight: 700;
}

.highlight-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

/* Responsive para highlight box */
@media (max-width: 640px) {
    .highlight-box {
        padding: 30px 20px;
    }

    .highlight-box h3 {
        font-size: 1.5rem;
    }

    .highlight-box p {
        font-size: 1rem;
    }

    .highlight-box .btn {
        width: 100%;
    }
}

/* Mission Vision */
.mv-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mv-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.mv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mv-icon i {
    color: white;
    font-size: 1.5rem;
}

.mv-content h4 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.mv-content p {
    margin: 0;
    font-size: 1rem;
}

/* ========================================
   POLYGON SECTION - MEJORADO
======================================== */
.poly-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.poly-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.poly-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.poly-section h2 {
    color: white;
    margin-bottom: 30px;
}

.poly-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.poly-section strong {
    color: var(--accent);
}

.poly-features {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.poly-feature-item {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.poly-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.poly-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.poly-feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.poly-feature-text {
    flex: 1;
}

.poly-feature-text h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.poly-feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   SERVICES SECTION - OPTIMIZADO
======================================== */
.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.service-icon i {
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-tagline {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.service-body {
    padding: 40px;
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    padding: 12px 0;
    display: flex;
    align-items: start;
    gap: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-light);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--success);
    margin-top: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
}

/* Certification Badge */
.cert-section {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cert-content {
    max-width: 900px;
    margin: 0 auto;
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cert-badge {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-width: 200px;
    transition: var(--transition);
}

.cert-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-badge-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.cert-badge h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cert-badge p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   VALUES SECTION - REDISEÑADO
======================================== */
.values-section {
    background: white;
}

.values-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.value-card:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.value-card h4 {
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-banner .btn {
    background: white;
    color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-banner .btn:hover {
    background: var(--bg-light);
    transform: translateY(-4px);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.contact-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
}

.contact-item span {
    font-size: 1.15rem;
    font-weight: 600;
}

.whatsapp-cta {
    display: block;
    background: #25D366;
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    background: #20ba5a;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Form */
.whatsapp-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #25D366 0%, #20ba5a 100%);
}

.whatsapp-card-icon {
    width: 100px;
    height: 100px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.whatsapp-card-icon i {
    font-size: 3.5rem;
    color: white;
}

.whatsapp-info-card h4 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.whatsapp-info-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.whatsapp-benefits {
    list-style: none;
    text-align: left;
    max-width: 350px;
    margin: 30px auto;
    padding: 0;
}

.whatsapp-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.whatsapp-benefits i {
    color: #25D366;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.whatsapp-info-card .btn:hover {
    background: #20ba5a !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* ========================================
   CONTACT FORM
======================================== */
.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-xl);
    border-top: 5px solid var(--accent);
}

.contact-form-card h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-card .form-intro {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label .req {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition-fast);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

.form-error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid var(--accent);
    color: var(--accent-hover);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Campo trampa anti-spam (oculto para personas) */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    margin-top: 28px;
    text-align: center;
}

.form-note {
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: var(--text-lighter);
    text-align: center;
}

@media (max-width: 640px) {
    .contact-form-card {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

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

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

/* ========================================
   SOCIAL LINKS SECTION
======================================== */
.social-section {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-section h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #0c5dc7);
    color: white;
}

.social-link.facebook:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F, #833AB4, #5851DB, #405DE6);
    color: white;
}

.social-link.instagram:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.4);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0A66C2, #004182);
    color: white;
}

.social-link.linkedin:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 102, 194, 0.4);
}

.copyright {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========================================
   FLOATING WHATSAPP
======================================== */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.float-whatsapp i {
    color: white;
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-8px);
    }
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .phone-btn {
        font-size: 0.95rem;
    }

    .header-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .section {
        padding: 70px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    /* Header Mobile */
    .header-inner {
        gap: 12px;
    }

    .logo-img {
        height: 40px;
    }

    header.scrolled .logo-img {
        height: 38px;
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: white;
        flex-direction: column;
        padding: 40px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-link::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
        order: 3;
    }

    /* Ocultar botón CTA en móviles dentro del header */
    .header-cta .btn {
        display: none;
    }

    /* Mantener solo el teléfono visible */
    .phone-btn {
        font-size: 0.9rem;
        gap: 6px;
    }

    .phone-btn i {
        font-size: 1rem;
    }

    /* Ajustar orden de elementos */
    .logo {
        order: 1;
    }

    .header-cta {
        order: 2;
    }

    /* Grid adjustments */
    .hero-content,
    .about-grid,
    .poly-content,
    .services-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .mv-cards {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .cert-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .float-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .float-whatsapp i {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Header extra small */
    .logo-img {
        height: 36px;
    }

    .phone-btn span {
        font-size: 0.85rem;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .proof-items {
        flex-direction: column;
        gap: 24px;
    }

    .services-grid {
        gap: 30px;
    }

    .whatsapp-info-card {
        padding: 30px 20px;
    }

    .footer-content {
        gap: 40px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .logo-img {
        height: 32px;
    }

    .phone-btn {
        font-size: 0.8rem;
    }

    .phone-btn i {
        font-size: 0.9rem;
    }

    .mobile-toggle {
        font-size: 1.4rem;
    }
}

/* ========================================
   NAV: SUBMENÚ DE SERVICIOS
======================================== */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle i {
    font-size: 0.65rem;
    margin-left: 4px;
    vertical-align: middle;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    padding-top: 12px;
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-inner {
    background: var(--bg-white);
    min-width: 230px;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.nav-sublink {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-sublink:hover {
    background: var(--bg-light);
    color: var(--accent);
}

/* El menú ahora tiene más elementos: solo icono de teléfono en pantallas medianas */
@media (max-width: 1240px) and (min-width: 969px) {
    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.88rem;
    }

    .phone-btn .phone-text {
        display: none;
    }
}

/* ========================================
   ENLACES DE TEXTO
======================================== */
.text-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.text-link:hover i {
    transform: translateX(3px);
}

.service-link {
    margin-top: 18px;
}

.services-more {
    text-align: center;
    margin: 44px 0 0;
    font-size: 1.1rem;
}

.poly-closing {
    margin: 32px 0 0;
}

.hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 3.1rem);
}

/* ========================================
   PREGUNTAS FRECUENTES
======================================== */
.section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 48px;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 60px 20px 24px;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-question {
    font-size: 1.08rem;
    line-height: 1.45;
    margin: 0;
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 22px;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}

.faq-answer a {
    color: var(--accent);
    font-weight: 600;
}

/* ========================================
   PÁGINAS INTERNAS
======================================== */
.page-hero {
    margin-top: 85px;
    padding: 64px 0 80px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    margin-bottom: 20px;
}

.page-hero .lead {
    margin-bottom: 30px;
}

.page-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 18px;
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 8px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    list-style: none;
    margin-top: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.trust-row i {
    color: var(--success);
    margin-right: 8px;
}

.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.content-section {
    padding: 80px 0;
}

.content-narrow {
    max-width: 820px;
    margin: 0 auto;
}

.content-narrow h2 {
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-light);
    font-size: 1.05rem;
}

.check-list i {
    color: var(--success);
    margin-top: 6px;
    flex-shrink: 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.audience-card {
    background: var(--bg-white);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.audience-card i {
    display: block;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.audience-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 0.95rem;
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-white);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.95rem;
    margin: 0;
}

.note-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    padding: 32px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.note-box h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.note-box p {
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn.btn-whatsapp {
    background: #25D366;
    color: white;
}

.cta-banner .btn.btn-whatsapp:hover {
    background: #20ba5a;
}

.cta-inline-link {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

/* ========================================
   FOOTER: ENLACES DEL SITIO
======================================== */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    padding: 0 0 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* ========================================
   RESPONSIVE (NUEVOS BLOQUES)
======================================== */
@media (max-width: 968px) {
    .nav-item {
        flex-direction: column;
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        padding-top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }

    .nav-dropdown-toggle i {
        display: none;
    }

    .nav-dropdown-inner {
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        min-width: 0;
        text-align: center;
    }

    .page-hero {
        padding: 48px 0 60px;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-section {
        padding: 60px 0;
    }

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

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .note-box {
        padding: 26px 22px;
    }

    .faq-item summary {
        padding: 18px 52px 18px 18px;
    }

    .faq-answer {
        padding: 0 18px 20px;
    }
}
