/* Variables CSS */
:root {
    --primary-color: #FF0000;
    --primary-dark: #CC0000;
    --secondary-color: #1a1a1a;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--nav-height);
}

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

/* Navegación superior */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Botón Alta en navegación */
.btn-nav-alta {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav-alta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Contenido principal */
.main-content {
    min-height: 100vh;
}

.section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    scroll-snap-align: start;
}

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

/* Acento rojo bajo títulos de secciones del formulario */
.form-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Aviso general (ubicado en el header del modal) */
.form-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ffd6d6;
    background: #fff5f5;
    color: #8b0000;
    border-radius: 10px;
}
.form-notice i { color: var(--primary-color); }


.section-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 8rem);
}

/* Hero Section Rediseñada */
.hero-section {
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    animation: slideInLeft 1s ease-out;
}

.car-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.hero-content {
    text-align: left;
    animation: fadeInRight 0.8s ease-out 1s both;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.subtitle {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
    /* Espaciado limpio entre botones */
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Indicador de más información - actualizado para enlaces */
a.more-info-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1.2s ease-out 1.5s both;
    text-decoration: none;
    display: block;
}

.more-info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.more-info-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

a.more-info-indicator:hover .more-info-text,
a.more-info-indicator:hover .more-info-icon {
    color: var(--primary-color);
}

/* Botón volver para móvil */
.btn-back-mobile {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.btn-back-mobile:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-back-mobile i {
    font-size: 1.1rem;
}

/* Indicador de scroll para desktop */
.scroll-indicator-desktop {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 0, 0.2);
    opacity: 1;
}

.scroll-indicator-desktop:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator-desktop i {
    font-size: 1.2rem;
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Botón con efecto reflejo */
.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-solicitud {
    animation: pulseGlow 4s ease-in-out infinite;
}

.btn-solicitud::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    animation: shimmer 6s ease-in-out infinite;
}

/* Animaciones */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.2);
    }
}

@keyframes shimmer {
    0%, 100% {
        transform: rotate(45deg) translateX(-100%);
    }
    20%, 80% {
        transform: rotate(45deg) translateX(-100%);
    }
    50% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Títulos de sección */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Contenido de texto */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Items de propuesta */
.propuesta-items {
    margin-top: 2rem;
}

.propuesta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.item-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.item-content {
    margin-left: 1.5rem;
}

.item-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.item-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid de beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-header i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.benefit-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* iPhone en beneficios - ACTUALIZADO PARA MÓVILES */
.benefit-iphone {
    /* Sin estilos de card */
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    height: 347px; /* Altura fija para desktop */
}

.benefit-iphone:hover {
    /* Sin efectos hover de card */
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.iphone-app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: none;
    transition: var(--transition);
}

/* Timeline de proceso */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.step-header h3 {
    font-size: 1.375rem;
    margin: 0;
}

.process-step p,
.process-step ul {
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-step ul {
    margin-left: 1.5rem;
}

.process-step li {
    margin-bottom: 0.5rem;
}

/* Modelo de colaboración */
.modelo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.modelo-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modelo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.modelo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modelo-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.modelo-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.modelo-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sección discreta de información */
.section-info {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    min-height: auto;
}

.btn-info-email {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-info-email:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.15);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.modal-wide {
    max-width: 1000px;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}
.modal-header-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b0000;
}
.modal-header-note i { color: var(--primary-color); }

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Formulario de alta */
.form-alta {
    padding: 1.5rem 2rem 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Grid específico para 2 columnas en desktop */
.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}
/* Insignia visual para campos obligatorios */
.required-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1;
    color: #b71c1c;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 999px;
    vertical-align: middle;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

.form-group input[readonly] {
    background: var(--bg-light);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-form {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Rediseño enlace: "Más información" */
.btn-secondary.btn-mas-info {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0; /* aspecto de enlace */
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}
.btn-secondary.btn-mas-info::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center; /* efecto de izquierda a derecha */
    transition: transform 0.3s ease;
}
.btn-secondary.btn-mas-info:hover {
    background: transparent; /* sin background hover */
    color: var(--primary-color);
}
.btn-secondary.btn-mas-info:hover::after {
    transform: scaleX(1);
}
.btn-secondary.btn-mas-info:focus-visible {
    outline: 2px dashed var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para la celebración - ACTUALIZADO A TEMA CLARO */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Cambiado a blanco con transparencia */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.celebration-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Aviso general de campos obligatorios */
.form-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ffd6d6;
    background: #fff5f5;
    color: #8b0000;
    border-radius: 10px;
}
.form-notice i { color: var(--primary-color); }
 

.celebration-button {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: celebrationBounce 0.6s ease-out 0.9s both;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.celebration-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* Canvas para confetti - Z-INDEX CORREGIDO */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001; /* Aumentado para que esté sobre el overlay */
}

/* Animaciones de celebración */
@keyframes celebrationFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes celebrationScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes celebrationBounce {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Menu hamburguesa para móvil */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Utility: screen-reader only label (keeps accessibility when using placeholders) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Contacts grid: 40% / 25% / 35% on desktop; stacks on small screens */
.form-grid-contacts {
  display: grid;
  grid-template-columns: 1fr; /* default stack */
  gap: 1.5rem;
}
@media (min-width: 1025px) {
  .form-grid-contacts {
    /* Shift space from manager to email and avoid overflow from gaps */
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) minmax(0, 8fr); /* ~35% / 25% / 40% */
    gap: 1rem;
  }
}

/* Responsive */
@media (max-width: 1024px) {
    /* Ocultar hero de mapa en móvil/tablet */
    #hero .hero-map-desktop { display: none; }
    
    /* Mostrar botón volver en móvil/tablet */
    .btn-back-mobile {
        display: flex;
    }
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .car-image {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.75rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .benefit-iphone {
        height: 280px; /* Altura ajustada para tablets */
    }
    
    .celebration-title {
        font-size: 2.5rem;
    }
    
    .celebration-subtitle {
        font-size: 1.25rem;
    }
}

/* ============== Desktop-only: Hero con Mapa de España ============== */
@media (min-width: 1025px) {
    /* Quitar separación superior en desktop para fullscreen real */
    body { padding-top: 0; }
    /* Ocultar el hero actual (coche) en desktop cuando el mapa esté presente */
    #hero .hero-wrapper { display: none; }
    /* El hero ocupa todo el viewport en desktop */
    #hero.section { min-height: 100vh; padding: 0; }

    /* Mostrar el nuevo hero with mapa */
        #hero .hero-map-desktop { display: block; position: relative; height: 100vh; }
        
    /* Mostrar indicador de scroll en desktop */
    .scroll-indicator-desktop {
        display: flex;
    }
        #hero .hero-map-container { position: relative; width: 100%; height: 100%; }
        #hero .map-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
    #hero .map-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; }
    #hero #spain-map-image { width: 100%; height: 100%; object-fit: cover; object-position: 0% 25%; transform: translateX(var(--map-shift-x, -32vw)); transition: transform 0.3s ease; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); opacity: 0.8; pointer-events: none; }
    #hero .map-container, #hero .map-wrapper, #hero #spain-map-image { pointer-events: none; }

    /* Puntos y líneas */
        #hero .location-point { position: absolute; width: 7px; height: 7px; background: var(--primary-color); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 3px rgba(255,0,0,0.4); z-index: 2; }
    #hero .location-point::before, #hero .location-point::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(255,0,0,0.20); animation: pulse 2.1s infinite; }
    #hero .location-point::after { animation-delay: 0.6s; }
    #hero .location-point[data-removed] { display: none !important; }
    @keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

    #hero .connection-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent); transform-origin: left center; animation: flowLine 3s infinite; opacity: 0.3; z-index: 5; pointer-events: none; }
    @keyframes flowLine { 0% { transform: rotate(var(--angle, 0rad)) scaleX(0); opacity: 0; } 50% { opacity: 0.6; } 100% { transform: rotate(var(--angle, 0rad)) scaleX(1); opacity: 0; } }

    /* Contenido del hero a la derecha del mapa */
        #hero .hero-content.hero-content-map { position: relative; z-index: 1; width: 50vw; margin-left: 50vw; padding: 0 3rem; display: flex; flex-direction: column; justify-content: center; height: 100%; background: transparent; }
    #hero .hero-content.hero-content-map .hero-title { font-size: 3rem; line-height: 1.1; }
    #hero .hero-content.hero-content-map .hero-logo { max-width: 450px; width: 100%; height: auto; margin-bottom: 2rem; display: block; background: #ffffffbd; border-radius: 32px;  }
}

/* Variables y ajustes del mapa (alcance del contenedor del hero) */
#hero .hero-map-container { --map-shift-x: -32vw; --cluster-factor: 0.8; --cluster-center-x: 0.5; --cluster-center-y: 0.5; --points-offset-y: -110px; --points-offset-x: 30px; --prefer-center-connections: 1; }

/* Navegación fija: mostrar solo cuando se hace scroll hacia abajo en desktop */
@media (min-width: 1025px) {
    .top-nav.nav-deferred { transform: translateY(-100%); transition: transform 0.3s ease; }
    .top-nav.nav-deferred.is-visible { transform: translateY(0); }
}

/* Fix para Google Places Autocomplete en Modal */
.pac-container {
    z-index: 9999 !important;
    position: fixed !important;
}

.pac-item {
    cursor: pointer;
    padding: 10px;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

/* Asegurar que el modal no bloquee el autocomplete */
.modal {
    z-index: 2000;
}

.modal-content {
    z-index: 2001;
}


/* ========== Mobile rebuild and hero adjustments ========== */
.hero-logo { display: none; }
.top-nav.nav-deferred { transform: translateY(-100%); transition: transform 0.3s ease; }
.top-nav.nav-deferred.is-visible { transform: translateY(0); }

@media (max-width: 768px) {
  /* Navegación móvil básica */
  .nav-toggle { display: block; }
  .nav-links, .btn-nav-alta { display: none; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: #fff; flex-direction: column; padding: 2rem; box-shadow: var(--shadow-md); transform: translateY(-100%); transition: transform 0.3s ease; }
  .nav-links.active { display: flex; transform: translateY(0); }
  .nav-links.active ~ .btn-nav-alta { display: flex; position: fixed; top: calc(var(--nav-height) + 280px); right: 2rem; z-index: 1001; }

  /* Ajustes generales */
  a.more-info-indicator { display: none !important; }
  .nav-container { padding: 0 1rem; }
  body { padding-top: 0; }
  html { scroll-snap-type: none; }
  .section { padding: 3rem 0; }
  .section-inner { min-height: calc(100vh - var(--nav-height) - 6rem); }
  .hero-title { font-size: 1.75rem; }
  .subtitle { font-size: 1.5rem; }
  .hero-description { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .benefits-grid, .modelo-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .benefit-iphone { height: auto; min-height: 250px; max-height: 400px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
  .iphone-app-image { width: 100%; height: auto; max-height: 400px; object-fit: contain; object-position: center; }
  .process-step { padding: 1.5rem; }
  .modal-content { width: 95%; margin: 1rem; }
  .form-grid-2col { grid-template-columns: 1fr; }
  .celebration-title { font-size: 2rem; }
  .celebration-subtitle { font-size: 1.125rem; padding: 0 1rem; }
  .celebration-button { font-size: 1rem; padding: 0.875rem 2rem; }

  /* Hero específico móvil */
  .hero-image { display: none; }
  .hero-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 2rem; }
  .hero-section { min-height: 100vh; }
  .hero-section .section-inner { justify-content: flex-start; min-height: calc(100vh - 6rem); }
  .hero-section .section-container { padding-top: 1.25rem; }
    .hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-cta .btn-solicitud { width: 100%; }
    /* Mantener subrayado bajo el texto (no ancho completo) */
    .hero-cta .btn-mas-info { width: auto; }
    /* En móvil también sin fondo/borde para el enlace */
    .btn-secondary.btn-mas-info { background: transparent; border: none; }
  .btn-solicitud { font-size: 1.05rem; padding: 1.05rem 2rem; }
  .btn-mas-info { padding: 0.85rem 1.25rem; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 8px; font-weight: 600; color: var(--text-primary); background: var(--bg-white); }
}


    /* Asegurar que el indicador quede oculto en móvil (mayor especificidad) */
    a.more-info-indicator { display: none !important; }

