@font-face {
    font-family: 'Castle';
    /* Asegúrate que la ruta a tus fuentes sea correcta desde la ubicación del CSS */
    src: url('../fonts/fuentecastle.otf') format('opentype');

}

@font-face {
    font-family: 'Trada';
    src: url('../fonts/trada-sans-black.ttf') format('truetype');
}
:root {
    --bg: #000000; /* Fondo negro como en el index */
    --panel: #141414;
    --text: #f4f4f4;
    --muted: #d0d0d0;
    --accent: #FF6B00; /* Naranja principal del index */
    --accent2: #ffcc66;
    --brd: rgba(255, 255, 255, .16);
    --radius: 18px;
    --maxw: 1180px;
}
body {
    /* ¡AQUÍ ESTÁ LA CLAVE! Aplicamos la fuente 'Castle' a todo el sitio por defecto */
    font-family: 'Castle', sans-serif;
    letter-spacing: 0.02em;
    background: var(--bg);
    color: var(--text);
	min-height: 100vh;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Castle', sans-serif;
    letter-spacing: 0.05em;
}

p, span, li, a {
    font-family: 'Castle', sans-serif;
    letter-spacing: 0.05em;
}

/* Clases de títulos que ya tenías */
.titulo-principal {
    font-family: 'Castle', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.titulo-secundario {
    font-family: 'Castle', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Adaptación para pantallas más grandes */
@media (min-width: 768px) {
    .titulo-principal {
        font-size: 3.5rem;
    }
}

@keyframes animacionleft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes animacionright {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animation-Right {
    animation: animacionright 1s ease forwards;
}

/* Estilos para el menú móvil */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #000000, #a63801);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

#mobile-menu.visible {
    visibility: visible;
    transform: translateX(0);
}

#overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

#overlay.visible {
    opacity: 1;
    visibility: visible;
}

#close-menu {
    transition: transform 0.2s ease, color 0.2s ease;
}

#close-menu:hover {
    transform: scale(1.1);
    color: #ff8c00;
}

/* Asegurar que el menú esté por encima de otros elementos */
#mobile-menu {
    z-index: 1000;
}

#overlay {
    z-index: 999;
}

/* Clases de utilidad para transiciones */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Asegurar que el menú no sea interactivo cuando está oculto */
.pointer-events-none {
    pointer-events: none;
}

.animation-Left {
    animation: animacionleft 1s ease forwards;

}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Asegura que los videos/iframes sean responsivos */
    video, iframe {
        max-width: 100%;
    }

    /* Transición suave para el menú móvil */
    #mobile-menu {
        transform: translateX(100%);
        opacity: 0;
    }
    
    #mobile-menu:not(.hidden) {
        transform: translateX(0);
        opacity: 1;
    }
    
/* Loader Animation */
@keyframes progress {
    0% { width: 0%; }
    70% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

.animate-progress {
    animation: progress 2s ease-in-out infinite;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loader .loader-logo {
    width: 12rem;
    height: 12rem;
    margin-bottom: 1rem;
}

#loader .loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulse 1.5s infinite ease-in-out;
}

#loader .loader-bar {
    width: 13rem;
    height: 0.4rem; 
    background: #333;
    border-radius: 0.25rem;
    overflow: hidden;
}

#loader .loader-progress {
    height: 100%;
    width: 0;
    background: #f97316;
    animation: progress 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes progress {
    0% { width: 0; margin-left: 0; }
    50% { width: 100%; margin-left: 0; }
    100% { width: 0; margin-left: 100%; }
}

/* Contenido principal */
body > :not(#loader) {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Estado inicial: loader visible, contenido oculto */
body:not(.loaded) > :not(#loader) {
    opacity: 0;
    pointer-events: none;
}

/* Estado cargado: loader oculto, contenido visible */
body.loaded #loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.loaded > :not(#loader) {
    opacity: 1;
    pointer-events: auto;
}

/* Barra de progreso de carga */
.animate-progress {
    width: 0%;
    animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* ========= ESTILOS ROADMAP (SOLUCIÓN FINAL) =============== */

/* Hacemos que la sección sea el contenedor de posicionamiento para el panel móvil */
#roadmap-section {
  position: relative;
}

.roadmap-scroll-wrapper { overflow: visible; padding: 0 1rem; }
.roadmap-container {
  position: relative; max-width: 1100px; margin: 150px auto;
  aspect-ratio: 1100 / 500; min-width: 850px;
}
.roadmap-line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: contain; z-index: 1;
}
.circle {
  position: absolute; z-index: 2; width: 20%;
  cursor: pointer; transition: transform 0.3s ease;
}
.circle:hover { transform: scale(1.1); }
.circle img { width: 100%; height: auto; display: block; }
.q3-2025   { top: 11.5%;  left: 2.57%; }
.q4-2025   { top: 42.3%;  left: 21.3%; }
.q1-2026   { top: 11.5%;  left: 40.1%; }
.q2-2026   { top: 42.3%;  left: 58.8%; }
.q3q4-2026 { top: 11.5%;  left: 77.7%; }

/* --- TOOLTIPS PARA ESCRITORIO --- */
.info {
  position: absolute; z-index: 20; width: 280px; left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 1rem; font-size: 0.85rem; line-height: 1.5; color: #E0E0E0;
  border: 2px solid transparent;
  background: linear-gradient(to right, #181818, #181818) padding-box,
              linear-gradient(to right, #FFD700, #FFA500) border-box;
  border-radius: 12px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.circle:hover .info { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.info-top { bottom: 100%; margin-bottom: 15px; }
.info-bottom { top: 100%; margin-top: 15px; }
.info::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border-style: solid; border-width: 8px;
}
.info-top::after { top: 100%; border-color: #FFA500 transparent transparent transparent; }
.info-bottom::after { bottom: 100%; border-color: transparent transparent #FFA500 transparent; }


/* ================ LÓGICA RESPONSIVA Y PANEL MÓVIL ========= */

/* PANEL MÓVIL (MODAL ESTÁTICO DENTRO DE LA SECCIÓN) */
.roadmap-mobile-panel {

display: none;

}
.roadmap-mobile-panel.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.roadmap-mobile-panel .close-button {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: none; border: none; font-size: 2rem;
  color: #888; cursor: pointer; line-height: 1;
}
.roadmap-mobile-panel .title {
  color: #FF6B00; font-size: 1.5rem; font-weight: bold;
  text-align: center; margin-bottom: 1rem;
}
.roadmap-mobile-panel .content ul { list-style: none; padding: 0; }
.roadmap-mobile-panel .content li { margin-bottom: 0.5rem; }


@media (max-width: 1024px) {
  /* SOLO en pantallas pequeñas, hacemos visible el panel móvil */
  .roadmap-mobile-panel {
    display: block; /* O 'flex' si lo necesitas */
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    z-index: 100;
    width: 90%; max-width: 400px;
    background: #1c1c1c;
    border: 2px solid #FFA500; border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Y ocultamos los tooltips de escritorio */
  .info { display: none !important; }

  /* ... (el resto de la media query se mantiene igual) ... */
  .roadmap-scroll-wrapper {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 2rem 0;
    scrollbar-width: thin; scrollbar-color: #FF6B00 #1f1f1f;
  }
  .roadmap-container {
    margin: 0 auto; min-width: 600px; 
  }
}

/* --- INDICADOR DE SCROLL --- */
.scroll-indicator-wrapper { margin-top: 1.5rem; }
.scroll-indicator {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem; color: #fff; font-size: 0.9rem; font-weight: bold;
  border: 2px solid transparent;
  background: linear-gradient(to right, #181818, #181818) padding-box,
              linear-gradient(to right, #FFD700, #FFA500) border-box;
  border-radius: 50px;
}
.scroll-indicator i { animation: pulse-horizontal 1.5s infinite ease-in-out; }
.scroll-indicator i.fa-angles-right { animation-delay: 0.1s; }
@keyframes pulse-horizontal {
  0%, 100% { transform: translateX(0); opacity: 0.5; color: #FFA500; }
  50% { transform: translateX(3px); opacity: 1; color: #FFD700; }
  55% { transform: translateX(-3px); }
}


.modal-overlay {
    animation: fadeIn 0.3s ease-out forwards;
}
.modal-content {
    animation: slideInUp 0.3s ease-out forwards;
}

.modal-leaving .modal-overlay {
    animation: fadeOut 0.2s ease-in forwards;
}
.modal-leaving .modal-content {
    animation: slideOutDown 0.2s ease-in forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(30px); } }


/* =======================================================
   ANIMACIÓN HOVER PARA CUADROS DE CARACTERÍSTICAS
   ================================================ */

/* 1. Estado base del cuadro y la transición que usará */
.feature {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 2. Estado del cuadro cuando el cursor del mouse está encima */
.feature:hover {
  /* Agranda el cuadro a un 105% de su tamaño original */
  transform: scale(1.05);

  box-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
}

/* =======================================================
   NUEVO FORMATO Y EFECTOS PARA LA SECCIÓN DE MÉTRICAS
   ======================================================= */

/* MÉTRICAS */
.metric-item {
  background-color: #1a1a1a;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 165, 0, 0.5);
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.15);
}

.metric-number {
  font-family: 'Trada', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.metric-label {
  font-family: 'Castle', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #a0a0a0;
  line-height: 1.4;
}


/* ========================================
   EFECTO HOVER PARA ICONOS DE REDES SOCIALES
   ======================================== */
.social-icon {
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* =======================================================
   ESTILOS FINALES Y CORRECTOS PARA MODAL CON SCROLL
   ======================================================= */

#join-modal {
    /* overflow-y-auto es la clave. Permite que el contenido interno se desplace verticalmente. */
    /* Las clases de Tailwind 'fixed inset-0 z-50 overflow-y-auto' ya hacen este trabajo. */
}

/* --- Contenedor del Modal (la ventana en sí) --- */
.modal-container {
    /* 'my-8' de Tailwind añade margen superior e inferior, permitiendo el scroll. */
    /* 'mx-auto' de Tailwind lo centra horizontalmente. */
    /* Ya no necesitamos flexbox ni max-height aquí, lo que simplifica todo. */
}

/* --- Estilos para el Textarea --- */
.modal-input[name="descripcion"] {
    resize: vertical; /* Permitir redimensionamiento solo vertical */
    min-height: 120px; /* Una buena altura inicial */
    /* Ya no se necesita max-height, el modal puede crecer y desplazarse */
}

/* --- Títulos, inputs y botones (resto de estilos sin cambios) --- */
.modal-title {
    font-family: 'Castle', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FF8A00;
}
.modal-subtitle {
    font-family: 'Castle', sans-serif;
    color: #a0a0a0;
    margin-top: 0.5rem;
}
.modal-label {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Castle', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a0a0a0;
}
.modal-input {
    width: 100%;
    background-color: #1f1f1f;
    border: 1px solid #4a4a4a;
    color: #f4f4f4;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-input:focus {
    outline: none;
    border-color: #FF8A00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.25);
}
.modal-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-family: 'Trada', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #111111;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modal-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.2);
}
.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Mensaje de Éxito (sin cambios) --- */
.success-icon-wrapper { margin: 0 auto 1.5rem; width: 80px; height: 80px; }
.success-icon { width: 100%; height: 100%; }
.success-icon-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke-miterlimit: 10; stroke: #4CAF50; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.success-icon-checkmark { stroke-dasharray: 48; stroke-dashoffset: 48; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke: #4CAF50; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
.success-title { font-family: 'Castle', sans-serif; font-size: 1.75rem; font-weight: 700; color: #4CAF50; }
.success-subtitle { font-family: 'Castle', sans-serif; color: #a0a0a0; margin-top: 0.5rem; }
.modal-close-success-btn { margin-top: 2rem; padding: 0.6rem 1.5rem; font-family: 'Trada', sans-serif; font-weight: 600; color: #FF8A00; background-color: transparent; border: 1px solid #FF8A00; border-radius: 999px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.modal-close-success-btn:hover { background-color: #FF8A00; color: #111111; }


/* --- EFECTOS HOVER UNIFICADOS PARA TODOS LOS BOTONES --- */

/* Regla 1: Transición suave para TODOS los botones */
#participate .btn,
#partners .btn,
#media-kit .btn,
#donate .btn,
#buy .btn,
#doctors .btn,
#patients .btn,
#blog .btn,
#whitepapers .btn, /* CORREGIDO: Era 'whitepaper' */
#newsletter .btn,
#careers .btn,
#privacy .btn,
#tncs .btn {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
}

/* Regla 2: Efecto para los botones principales (sólidos) */
/* Se levantan y proyectan una sombra */
#participate .btn:not(.ghost):hover,
#partners .btn:not(.ghost):hover,
#media-kit .btn:not(.ghost):hover,
#donate .btn:not(.ghost):hover,
#buy .btn:not(.ghost):hover,
#doctors .btn:not(.ghost):hover,
#patients .btn:not(.ghost):hover,
#blog .btn:not(.ghost):hover,
#whitepapers .btn:not(.ghost):hover, /* CORREGIDO: Era 'whitepaper' */
#newsletter .btn:not(.ghost):hover,
#careers .btn:not(.ghost):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 165, 0, 0.25);
}

/* Regla 3: Efecto para los botones secundarios (ghost) */
/* Se rellenan de color */
#participate .btn.ghost:hover,
#privacy .btn.ghost:hover, /* CORREGIDO: Faltaba una coma y un selector */
#tncs .btn.ghost:hover {
    background-color: var(--accent); /* Usamos la variable para consistencia */
    color: #FFFFFF;
}

/* --- ESTILOS PARA EL CARRUSEL SWIPER --- */

.swiper-button-prev,
.swiper-button-next {
    /* Color de la flecha */
    color: #FF8A00 !important; /* ¡IMPORTANTE! Asegura que el color naranja sobreescriba el azul por defecto de Swiper */
    
    /* Efecto hover */
    transition: transform 0.2s ease, color 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
    color: #ffcc66 !important; /* Un naranja más claro al pasar el cursor */
}

/* 3. Ajuste del tamaño del icono de la flecha (sin cambios) */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 2rem;
    font-weight: bold;
}