/* === ESTILOS CENTRAL PASSPORT AI - TEMA AZUL NEÓN === */
:root {
    /* Nueva paleta de colores inspirada en el logo */
    --primary-color: #00b8ff;       /* Azul cian brillante para acentos y neón */
    --secondary-color: #b0e0ff;    /* Azul claro para textos secundarios */
    --accent-color: #ffcc00;       /* Amarillo/Dorado para CTAs (conservado) */
    --text-color: #e0e6f0;         /* Texto principal casi blanco */
    --dark-background: #001a35;     /* Azul casi negro del logo */
    --card-background: #00223d;     /* Azul medianoche para superficies */
    --button-hover: #33c6ff;       /* Azul más brillante para hover */
    --font-primary: 'Poppins', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: var(--dark-background);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.8em;
}

.features h2, .ai-models h2, .pricing h2, .call-to-action h2 {
    font-size: 2.8em;
}

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

/* Header */
header {
    background-color: rgba(0, 26, 53, 0.85); /* --dark-background con transparencia */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 184, 255, 0.2); /* --primary-color */
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    background-color: rgba(0, 26, 53, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 184, 255, 0.7);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--primary-color);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 3px var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Botones de autenticación */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.button {
    background-color: transparent;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    background-color: rgba(0, 184, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 184, 255, 0.4);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--dark-background) !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 0 15px rgba(0, 184, 255, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--button-hover);
    box-shadow: 0 6px 20px rgba(0, 184, 255, 0.6);
}

/* Sección Hero */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-background);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 184, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    animation: pan-grid 20s linear infinite;
    z-index: 0;
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: white;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 184, 255, 0.8), 0 0 20px rgba(0, 184, 255, 0.5);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto 40px;
    max-width: 800px;
    color: var(--secondary-color);
    line-height: 1.8;
    font-weight: 300;
    opacity: 0.95;
}

/* Slogan destacado dentro de la hero */
.hero .slogan {
    font-size: 1.5rem;
    margin: 10px auto 35px;
    max-width: 800px;
    font-weight: 500;
    color: var(--text-color); /* Color sólido para máxima legibilidad */
    text-shadow: 0 0 6px rgba(0, 184, 255, 0.35), 0 0 14px rgba(0, 184, 255, 0.2);
}

.hero .slogan strong {
    color: #ffffff; /* Aún más contraste para el comienzo del eslogan */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 184, 255, 0.65), 0 0 20px rgba(0, 184, 255, 0.35);
}

.hero .slogan::after {
    content: '';
    display: block;
    width: 180px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 12px rgba(0, 184, 255, 0.55);
}

/* Secciones */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background-color: rgba(0, 26, 53, 0.5); /* --dark-background con transparencia */
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 auto 60px;
    position: relative;
    display: table;
    padding-bottom: 20px;
    background: linear-gradient(90deg, var(--secondary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Call to Action Section */
.call-to-action {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    /* Degradado propio para diferenciar de la sección anterior */
    background:
      radial-gradient(600px 400px at 50% -10%, rgba(0, 184, 255, 0.15), transparent 60%),
      linear-gradient(180deg, rgba(0, 26, 53, 0.60) 0%, rgba(0, 34, 61, 0.85) 100%);
}

/* Barrido luminoso muy sutil sobre el fondo de CTA */
.call-to-action::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: conic-gradient(from 0deg at 50% 0%, rgba(0, 184, 255, 0.18), transparent 30%, transparent 70%, rgba(0, 184, 255, 0.18));
    filter: blur(40px);
    opacity: 0.35;
    animation: rotate-sweep 18s linear infinite;
}

@keyframes rotate-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.call-to-action .section-title { color: var(--text-color); }
.call-to-action .section-description { color: var(--secondary-color); }
.call-to-action .cta-button {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 184, 255, 0.4);
}
.call-to-action .cta-button:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 184, 255, 0.5);
}
.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: -40px auto 50px;
    opacity: 0.9;
    line-height: 1.8;
}

/* Sección de Características */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 184, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 184, 255, 0.3);
    border-color: rgba(0, 184, 255, 0.5);
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--primary-color);
}

.feature-card:hover .icon {
    transform: scale(1.1) translateY(-5px);
    color: var(--button-hover);
}

/* === Sección de Modelos de IA (Versión Mejorada) === */
.ai-models {
    padding: 120px 0;
    position: relative;
    background-color: var(--dark-background);
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.model-card-container {
    perspective: 1000px;
    position: relative; /* para posicionar el halo detrás */
}

.model-card {
    background: linear-gradient(145deg, rgba(0, 34, 61, 0.5), rgba(0, 26, 53, 0.5));
    border-radius: 15px;
    padding: 20px;
    position: relative;
    z-index: 1; /* por encima del halo del contenedor */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    border: 1px solid rgba(0, 184, 255, 0.2);
}

/* Efecto de brillo en el borde */
.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    border: 1px solid transparent;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 184, 255, 0.3), transparent 40%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover::before {
    opacity: 1;
}

/* Halo luminoso azul que sigue al cursor (detrás de la tarjeta) */
.model-card-container::before {
    content: '';
    position: absolute;
    inset: -16px; /* halo se extiende ligeramente fuera de la tarjeta */
    border-radius: 22px;
    pointer-events: none;
    background: radial-gradient(
        200px 200px at var(--mx, 50%) var(--my, 50%),
        rgba(0, 184, 255, 0.35),
        rgba(0, 184, 255, 0.10) 45%,
        rgba(0, 184, 255, 0.0) 65%
    );
    filter: blur(22px);
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0; /* queda detrás de .model-card (z-index:1) */
}

.model-card-container:hover::before {
    opacity: 1;
}

.model-card-content {
    text-align: center;
    transition: transform 0.3s ease;
}

.model-logo {
    width: 90px;
    height: 90px;
    border-radius: 10%;
    object-fit: contain;
    margin-bottom: 20px;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(3%) opacity(0.7);
}

.model-card:hover .model-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.model-card span {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.model-card small {
    display: block;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Sección de Precios */
.pricing {
    position: relative;
    /* Degradado distinto al de CTA para diferenciarlas */
    background: linear-gradient(180deg, rgba(0, 34, 61, 0.65) 0%, rgba(0, 26, 53, 0.90) 100%);
}

.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Grid sutil azulada encima del degradado */
    background:
      linear-gradient(to right, rgba(0, 184, 255, 0.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0, 184, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 184, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 184, 255, 0.4);
}

.price-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.3);
}

.price-card.featured .price { color: var(--accent-color); }

.price-card.featured .select-plan {
    background: var(--accent-color);
    color: var(--dark-background);
    font-weight: 600;
}

.price-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-card .price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.price-card .price span {
    font-size: 1rem;
    margin-left: 5px;
    opacity: 0.8;
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.price-card ul li {
    color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 184, 255, 0.15);
    font-size: 0.95rem;
}

.price-card ul li:last-child {
    border-bottom: none;
}

.select-plan {
    display: inline-block;
    background: rgba(0, 123, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.select-plan:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 184, 255, 0.3);
}

/* Footer */
footer {
    background-color: #001a35;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 184, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Media Queries (sin cambios, ya que son estructurales) */
@media (max-width: 1200px) {
    header .container { padding: 0 20px; }
    nav ul { gap: 20px; }
}
@media (max-width: 1024px) {
    nav ul { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    html { font-size: 16px; }
    header .container { padding: 10px 15px; flex-direction: row; }
    .logo { font-size: 1.5rem; }
    .auth-buttons { margin-left: auto; }
    .hero h1 { font-size: 2.5em; }
    .hero p { font-size: 1.1em; }
}