@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* =========================================
   RESETEO Y ESTILOS BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
}

/* =========================================
   BARRA DE NAVEGACIÓN (HEADER)
========================================= */
header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container > a > img {
    height: 60px;
    width: auto;
    display: block;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
}

/* =========================================
   PIE DE PÁGINA (FOOTER)
========================================= */
footer {
    width: calc(100% - 3rem);
    max-width: calc(1100px - 3rem);
    margin: 3rem auto 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* =========================================
   BOTÓN FLOTANTE: VOLVER ARRIBA
========================================= */
#scrollToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

@media (max-width: 550px) {
    .nav-links {
        gap: 1rem;
        font-size: 14px;
    }
}

/* Corrección de inputs de fecha en iOS / Safari */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-height: 48px; /* Altura táctil uniforme */
    text-align: left; /* Alinea el texto a la izquierda en iOS */
    box-sizing: border-box;
}

/* Forzar que el texto interno de la fecha no se centre en iOS */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

/* Asegurar padding en el indicador del selector */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-position: right;
    cursor: pointer;
    opacity: 0.6;
}
