@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
    /* Brand Colors (Fixed) */
    --color-accent: #00D4FF;
    /* Electric Cyan */
    --color-primary-deep: #0F172A;
    /* Midnight Deep Blue */
    --color-primary-navy: #1A2B4C;
    /* Navy */
    --color-secondary: #2d5a27;
    /* Forest Green (Calm Ally) */

    /* Default - Light Theme */
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-alternate: #1A2B4C;
    /* For alternating dark sections in light mode */
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.8);
    --btn-outline-text: #1A2B4C;
    --btn-outline-border: #1A2B4C;

    /* Design Tokens */
    --radius-md: 15px;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 10rem;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-main: #0F172A;
    --bg-surface: #1E293B;
    --bg-alternate: #020617;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(15, 23, 42, 0.8);
    --btn-outline-text: #FFFFFF;
    --btn-outline-border: #FFFFFF;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
}

.reveal-active {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Header & Toggle */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--color-accent);
    color: var(--color-primary-deep);
}

/* Sections */
section {
    padding: var(--space-lg) 0;
}

.section-dark {
    background-color: var(--bg-alternate);
    color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: white;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* Components */
.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary-deep);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

.icon-secondary {
    color: var(--color-secondary);
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition-smooth);
    border: 2px solid var(--btn-outline-border);
    color: var(--btn-outline-text);
    cursor: pointer;
}

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

/* Forms */
.form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
}

input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer Styles */
footer {
    padding: 5rem 0 0 0;
    background: var(--color-secondary);
    transition: var(--transition-smooth);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none;
    color: var(--text-main);
}

.footer-marketing {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 320px;
    text-align: justify;
    margin: 0 auto;
}

.footer-nav h4,
.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.footer-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-row {
    display: flex;
    gap: 0.8rem;
}

.newsletter-row input {
    flex: 1;
}

.newsletter-box input {
    margin-bottom: 0 !important;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 100%;
}

.newsletter-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-box .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.copyright-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright-strip p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Logo Styles */
.logo-header {
    height: 45px;
    width: auto;
    display: block;
}

.footer-logo-wrapper {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.footer-logo-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px; /* Espacio entre el icono y el texto */
    vertical-align: middle;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem !important;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-box {
        flex-direction: column;
    }
}





/* css para la política de privacidad */
.privacidad h1, .privacidad h2 {
    color: var(--color-secondary);
}
.privacidad a{
    color: var(--color-secondary);
}
.privacidad a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.3s;
}
.privacidad a:hover {
    color: var(--color-secondary);
}
.privacidad hr {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Estilos para mensajes de error y éxito en ul > li */  
.lista-mensajes {
    list-style-type: none; /* Quita los puntitos por defecto */
    padding: 0;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
/* Estilo base para cada mensaje */
.mensaje {
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
}

#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  max-width: 250px; /* Set a default minimum width */
  margin-right: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: justify; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  right: 10%; /* Center the snackbar */
  top: 30px; /* 30px from the bottom */
}
#snackbar-list{
    margin: 16px;
}

#snackbar.error {
    background-color: #f5bfbe;
    color: #9b1c1c;
}

#snackbar.success {
    background-color: #bae9b2;
    color: #03543f;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {top: 0; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@keyframes fadein {
  from {top: 0; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: 0; opacity: 0;}
}

@keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: 0; opacity: 0;}
}

/* ==========================================================================
   Componente: Carrusel de Imágenes (Kume-Carousel)
   ========================================================================== */
.kume-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    transition: transform var(--transition-smooth);
}

.carousel-slide {
    min-width: 100%; /* Cada imagen ocupa exactamente todo el ancho del contenedor */
    box-sizing: border-box;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1/1; /* Mantiene la proporción cuadrada */
    max-height: 450px; /* Limita la altura máxima para pantallas grandes */
    object-fit: cover;
    object-position: top; /* Centra la parte superior de la imagen */
    display: block;
    border-radius: 12px;
}

/* Botones de control de línea fina */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    z-index: 5;
}

.carousel-control:hover {
    background: var(--color-accent);
    color: var(--color-primary-deep);
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* Indicadores inferiores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    opacity: 0.4;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-indicators .dot.active {
    background: var(--color-accent);
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================================================
   Componente: Caption de Texto Superpuesto en el Carrusel
   ========================================================================== */
/* Contenedor del texto superpuesto */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Fondo con degradado negro para asegurar contraste del texto */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: #FFFFFF;
    padding: 40px 25px 30px 25px; /* Espaciado interno (más espacio abajo por los indicadores) */
    text-align: left;
    box-sizing: border-box;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    pointer-events: none; /* Permite que la lupa ignore el texto y funcione correctamente */
    z-index: 2;
}

/* Estilos para los títulos y párrafos dentro de la diapositiva */
.carousel-caption h3 {
    color: #FFFFFF !important; /* Forzar blanco independiente del tema */
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Componente: Boton para abrir imagen en nueva pestaña
   ========================================================================== */
/* Botón para abrir imagen en nueva pestaña */
.carousel-view-newtab {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    z-index: 5;
    text-decoration: none; /* Quita el subrayado por ser un tag <a> */
}

.carousel-view-newtab:hover {
    background: var(--color-accent);
    color: var(--color-primary-deep);
}

/* ==========================================================================
   Componente: Tooltip Personalizado para el Botón del Carrusel
   ========================================================================== */

/* Asegurar el posicionamiento relativo para el tooltip */
.carousel-view-newtab {
    position: absolute; /* Mantiene la posición existente */
}

/* El contenedor del texto emergente */
.carousel-view-newtab::before {
    content: attr(data-tooltip); /* Captura el texto del atributo HTML */
    position: absolute;
    bottom: -45px; /* Lo posiciona justo debajo del botón */
    right: 0;
    background-color: var(--color-primary-deep); /* Fondo oscuro a juego[cite: 3] */
    color: #FFFFFF;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 20;
}

/* La pequeña flecha del tooltip */
.carousel-view-newtab::after {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 14px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--color-primary-deep) transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 20;
}

/* Activación al hacer Hover */
.carousel-view-newtab:hover::before,
.carousel-view-newtab:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}