/* --- Variables del Sistema de Diseño --- */
:root {
    --bg-color: #06060c;
    --card-bg: rgba(18, 18, 32, 0.45);
    --card-border: rgba(0, 242, 254, 0.12);
    --primary-glow: #00f2fe;
    --secondary-glow: #7f00ff;
    --text-color: #ffffff;
    --text-muted: #a0aec0;
    --glass-nav: rgba(6, 6, 12, 0.75);
}

/* --- Reseteo Estricto y Caja --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Fondo holográfico de soporte */
.bg-grid-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.08), transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(127, 0, 255, 0.08), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* --- Navegación Avanzada (Glassmorphism + Blur) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-glow);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

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

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    transition: width 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s;
}

/* --- Componentes Atómicos Estilizados --- */
section {
    padding: 120px 8% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
}

h2 span {
    background: linear-gradient(90deg, var(--primary-glow), #b166ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary-glow);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-glow);
    color: #06060c;
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
}

/* --- Sección Diseños Ajustada con Imágenes Tipo Mockup --- */
/* ==========================================================================
   REEMPLAZAR: Desde .grid-container hasta el final del hover de la tarjeta
   ========================================================================== */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: rgba(10, 14, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Contenedor Superior Ajustado para las Capturas de Pantalla Web */
.card-image {
    width: 100%;
    height: 195px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la captura sin deformarla */
    object-position: top center; /* Muestra siempre la cabecera de la web */
    filter: brightness(55%) contrast(115%) grayscale(15%); /* Efecto apagado cibernético inicial */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

/* Cuerpo interno de la tarjeta */
.card-body {
    padding: 35px 30px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--primary-glow);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    transform: translateZ(30px);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    transform: translateZ(25px);
}

.card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Esto alinea los botones perfectamente en grilla */
    transform: translateZ(20px);
}

.card-link {
    color: var(--primary-glow);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, text-shadow 0.3s ease;
    transform: translateZ(25px);
}

/* --- Efectos Interactivos Hover --- */
.card:hover {
    border-color: rgba(0, 242, 254, 0.8);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.card:hover .card-image img {
    transform: scale(1.04);
    filter: brightness(95%) contrast(105%) grayscale(0%); /* "Enciende" la interfaz real al pasar el mouse */
}

.card:hover .card-link {
    gap: 12px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

/* --- Sección Nosotros --- */
.about {
    text-align: center;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-muted);
}

/* --- Sección Contacto --- */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    background: rgba(10, 10, 22, 0.3);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(6, 6, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-glow);
    background: rgba(6, 6, 12, 0.9);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
}

/* --- WhatsApp Flotante Premium con Pulso Sincronizado --- */
.whatsapp-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Anillo de pulso de radar futurista */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    left: 0;
    top: 0;
    animation: radarPulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- DISEÑO RESPONSIVO MÓVIL OPTIMIZADO (Menú de 3 Líneas) --- */
@media (max-width: 768px) {
    header {
        padding: 18px 6%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 73px);
        background: rgba(6, 6, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 10%;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(0, 242, 254, 0.15);
    }

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

    .nav-menu a {
        margin-left: 0;
        font-size: 1.1rem;
        width: 100%;
    }

    section {
        padding: 100px 6% 60px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2.1rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
}

/* --- Sección de Beneficios Mensuales --- */
.benefits {
    background: radial-gradient(circle at 50% 50%, rgba(127, 0, 255, 0.05), transparent 60%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -30px auto 50px;
    font-size: 1.05rem;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.benefit-panel {
    background: rgba(10, 10, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--secondary-glow); /* Borde de color morado/cian */
    padding: 35px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-panel:first-child {
    border-left-color: var(--primary-glow); /* El primer panel resalta en cian */
}

.benefit-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 1.4rem;
    color: var(--primary-glow);
    background: rgba(0, 242, 254, 0.08);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.benefit-panel:last-child .benefit-icon {
    color: #b166ff;
    background: rgba(177, 102, 255, 0.08);
    box-shadow: 0 0 10px rgba(177, 102, 255, 0.1);
}

.benefit-info h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.benefit-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Ajuste responsivo extra */
@media (max-width: 480px) {
    .benefit-panel {
        padding: 25px 20px;
    }
    .benefit-item {
        gap: 15px;
    }
}

/* --- Ajustes de Botones en Nosotros y Ubicación --- */
.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 0 25px rgba(220, 39, 67, 0.5);
    color: #ffffff;
}

.btn-gmail:hover {
    background: #ea4335;
    border-color: #ea4335;
    box-shadow: 0 0 25px rgba(234, 67, 53, 0.5);
    color: #ffffff;
}

/* Adaptación del Mapa para pantallas móviles */
@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 70% !important; /* Más alto en móviles para mejor visualización */
    }
    .location-info {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
}