/* =========================================
   1. VARIABLES, RESET Y UTILIDADES (GLOBAL)
   ========================================= */
:root {
    --primary: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
    --white: #ffffff;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* Contenedor Global */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    width: 100%;
}

/* =========================================
   2. REGLAS DE VISIBILIDAD (Menú Móvil vs PC)
   ========================================= */
.menu-toggle {
    display: none !important;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-phone {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.cta-phone:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-modern {
    padding: 10rem 5% 6rem;
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.pill-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pill-badge i {
    color: var(--success);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatars {
    display: flex;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
}

.trust-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

.trust-text strong {
    color: var(--white);
}

.stars {
    color: var(--warning);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9);
}

.floating-status {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: floatHero 6s ease-in-out infinite;
    max-width: 280px;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.status-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.status-check {
    color: var(--accent);
    /* Azul */
    margin-left: auto;
    /* Lo empuja a la derecha */
    font-size: 1.4rem;
    /* Tamaño visible */
    min-width: 24px;
    /* Evita que se aplaste */
    text-align: right;
    display: flex;
    /* Centrado vertical */
    align-items: center;
}

/* Forzar que FontAwesome se pinte correctamente */
.status-check i {
    font-weight: 900 !important;
    /* Importante para iconos sólidos */
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   5. SECCIONES (Quienes, Servicios, Why, Stats)
   ========================================= */
.section-header {
    margin: 0 auto 4rem;
    text-align: center;
    max-width: 700px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* Quienes Somos */
.quienes-somos {
    padding: 6rem 5%;
    background: var(--bg-white);
    overflow: hidden;
}

.quienes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.quienes-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary);
}

.text-primary {
    color: var(--accent);
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.features-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.highlight-box {
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.icon-highlight {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 3px;
}

.quienes-visual-wrapper {
    position: relative;
    height: 500px;
}

.image-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.image-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    animation: float 6s ease-in-out infinite;
}

.card-top-left {
    top: 10%;
    left: 0;
    border-left: 5px solid var(--accent);
}

.card-bottom-right {
    bottom: 5%;
    right: 5%;
    background: var(--primary);
    color: var(--white);
}

.card-center-left {
    bottom: 20%;
    left: -20px;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    animation-delay: 1s;
}

.floating-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.card-bottom-right .stat-number {
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Servicios */
.servicios {
    background: var(--bg-body);
    padding: 6rem 5%;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.servicio-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.step-number {
    display: none;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.2);
    border-bottom-color: var(--accent);
}

.servicio-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.servicio-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.servicio-card:hover .service-link {
    gap: 0.8rem;
    color: var(--accent-hover);
}

/* Por Qué */
.por-que {
    padding: 6rem 5%;
    background: var(--bg-white);
    position: relative;
}

.por-que-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.por-que-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.por-que-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.por-que-card:hover .icon-wrapper {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.por-que-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.por-que-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Stats */
.stats {
    padding: 6rem 5%;
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stats-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 25%), radial-gradient(var(--white) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.section-header.light-theme .section-title {
    color: var(--white);
}

.section-header.light-theme .section-subtitle {
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    display: inline-block;
}

.stat-symbol {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    vertical-align: top;
    margin-left: 2px;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Contacto */
.contacto {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, var(--bg-body) 0%, #fff 100%);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info .tagline {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.contact-info .lead-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .icon-box {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.contact-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.trust-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.03);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-flex;
}

.trust-note i {
    color: var(--success);
}

/* Formulario */
.form-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.form-footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* =========================================
   6. FOOTER, WHATSAPP & MODALES
   ========================================= */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close:hover {
    color: var(--primary);
}

/* =========================================
   7. RESPONSIVE DESIGN (FINAL)
   ========================================= */

/* Tablets y pantallas medianas (hasta 1024px) */
@media (max-width: 1024px) {

    .hero-wrapper,
    .quienes-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content,
    .quienes-text,
    .contact-info {
        margin: 0 auto;
    }

    .section-header {
        margin: 0 auto 3rem;
        text-align: center !important;
    }

    .hero-actions,
    .hero-trust,
    .contact-details {
        justify-content: center;
    }

    .image-container,
    .quienes-visual-wrapper {
        height: 400px;
        margin: 0 auto;
    }

    .floating-status {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        animation: none;
        width: 90%;
    }

    /* Preparamos la imagen para que se vea bien en tablet */
    .image-backdrop {
        width: 100%;
        height: 100%;
    }

    .card-center-left {
        left: 0;
    }

    .card-top-left {
        left: -10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .form-card {
        padding: 2rem;
    }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {

    /* 1. Visibilidad Menú */
    .menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
    }

    .mobile-only {
        display: block !important;
        margin-top: 1rem;
    }

    .desktop-only {
        display: none !important;
    }

    /* 2. Menú Desplegable */
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        z-index: 990;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateY(0%);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* 3. Ajustes Generales */
    .hero-modern {
        padding-top: 8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .servicios-grid,
    .por-que-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .por-que-card {
        padding: 2rem;
    }

    /* 4. ARREGLO FOTO QUIENES SOMOS */
    .quienes-visual-wrapper {
        height: auto !important;
        /* Dejamos que el contenido mande */
        margin-top: 3rem;
        display: block;
        padding-bottom: 20px;
        /* Espacio para las tarjetas flotantes */
    }

    .image-backdrop {
        position: relative !important;
        /* CAMBIO CLAVE: Ya no flota */
        width: 100% !important;
        height: 350px !important;
        /* Altura fija */
        top: auto;
        right: auto;
        left: auto;
        border-radius: 16px;
    }

    /* Ajustar tarjetas flotantes */
    .floating-card {
        transform: scale(0.9);
    }

    .card-top-left {
        top: -15px;
        left: 10px;
    }

    .card-bottom-right {
        bottom: -15px;
        right: 10px;
    }

    .card-center-left {
        display: none;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}