/* General styles */
:root{
    --fondo: #F2F5F9;
    --primary-text: #1F2937;
    --secondary-text: #9CA3AF;
    --button-color: #9CA3AF;
    --button-text: #9CA3AF;
    --button-menu-color: #9CA3AF;
    --button-menu-hover: #9CA3AF;
    --safe-top: env(safe-area-inset-top, 0px);
    --primary-gradient: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    --accent-blue: #0084FF;


    --bg: #0b1020;
    --muted: #b5c0d0;
    --card: #12172a;
    --accent: #5b7cff;
    --ok: #12b981;
    --warn: #f59e0b;
    --err: #ef4444;

    /* --- Estados --- */
    --success-green: #10B981; /* Verde esmeralda para "Completado" */
    --pending-orange: #F59E0B; /* Naranja suave para "Pendiente" */

    /* --- Sombras (Clave para el efecto 3D suave) --- */
      --shadow-soft: 0 10px 25px -5px rgba(0, 132, 255, 0.15);
      --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);


    /* --- Tipografía --- */
      /* Recomiendo 'Inter' o 'DM Sans' de Google Fonts */
      --font-family: 'Inter', system-ui, -apple-system, sans-serif;

}

.flash-message {
    transition: opacity 0.5s ease-out;
}


/* 1) Quitar el highlight azul al tocar (Android/iOS/Chrome/Safari) */
* {
  -webkit-tap-highlight-color: transparent;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* 2) Evitar la selección de texto y el menú de “copiar/definir” al mantener pulsado */
html, body, .no-select, [data-no-select] {
  user-select: none;
  -webkit-user-select: none; /* Safari/iOS */
  -ms-user-select: none;     /* IE/Edge antiguo */
  -webkit-touch-callout: none; /* iOS: desactiva el “callout” al mantener pulsado */
}

/* 3) Mantener la selección habilitada en inputs/áreas editables (importante) */
input, textarea, [contenteditable="true"], .selectable, [data-selectable] {
  user-select: text !important;
  -webkit-user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* 4) Evitar arrastrar imágenes/links (reduce efectos raros en WebView) */
img, a img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* 5) Mantener accesibilidad: quitar contorno sólo para ratón/touch, no para teclado */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid #3b82f6; /* o tu color de foco del diseño */
  outline-offset: 2px;
}


/* General styles */
html, body {
    margin: 0;
    height: auto;
    min-height: 100dvh;
    overscroll-behavior: none; /* Permite scroll pero evita el rebote */
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-wrap: wrap;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
}

#landscape-warning {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
    color: white;
    font-size: 1.5em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté encima de todo */
    padding: 20px;
    overflow: hidden;
}


/* Contenedor General */
.container {
    display: flex;
    max-width: 1200px;
    width: 90%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-right: 2.5%;
    margin-left: 2.5%;
}

/* Sección de Introducción */
.intro-section {
    width: 50%;
    padding: 50px;
    background: #f0f8ff;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.intro-section h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0084ff70;
    text-align: center;
}

.intro-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #007bff;
}

.intro-section h2 .highlight {
    color: #0056b3;
    font-weight: bold;
}

.intro-section p {
    font-size: 1em;
    color: #555;
    line-height: 1.3;
    text-align: justify;
}

.intro-section ul {
    list-style: none;
    padding: 0;
}

.intro-section ul li {
    margin-bottom: 15px;
    font-size: 1em;
    color: #333;
    line-height: 1.2;
}

.intro-section ul li .bullet {
    color: #007bff;
    font-size: 1.2em;
    margin-right: 10px;
}

/* Selector de idioma */
.language-selector {
    margin-top: 20px;
}

.language-selector label {
    font-size: 1em;
    color: #007bff;
    margin-bottom: 10px;
    display: block;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    appearance: none; /* Elimina el estilo por defecto del select */
    cursor: pointer;
    outline: none;
}

.select-wrapper select:focus {
    border-color: #0056b3;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #007bff;
    pointer-events: none; /* Evita que el ícono interfiera con el clic */
}

.select-wrapper:hover select {
    border-color: #0056b3;
}

.select-wrapper select option {
    background: #ffffff;
    color: #333;
}

/* Estilos para el input de búsqueda y resultados */
#other-language {
    margin-top: 10px;
}

#language-search {
    width: 50%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    outline: none;
}

#language-search:focus {
    border-color: #0056b3;
}

#language-results {
    margin-top: 10px;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: #ffffff;
    max-height: 150px;
    overflow-y: auto;
}

#language-results div {
    padding: 10px;
    cursor: pointer;
}

#language-results div:hover {
    background-color: #f0f0f0;
}

/* Sección de Login */
.login-section {
    width: 50%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* Login Box */
.login-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Login Box */
#login-box {
    display: none;
}


.logo img {
    width: 100px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.input-group input:focus {
    border: 2px solid #ddd;
    outline: none;
}

/* Botón */
.login-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 60px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow:var(--shadow-soft);
    font-family: var(--font-family);
}

.apple-button {
    background: black !important;
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 60px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;

    /* Efecto acolchado */
    background-image: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, transparent 70%),
                      linear-gradient(145deg, var(--button-color), #00d4ff);
    box-shadow:var(--shadow-soft);
    font-family: var(--font-family);
}

.apple-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

/* Botón */
.contact-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 60px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    /* Efecto acolchado */
    box-shadow:var(--shadow-soft);
    font-family: var(--font-family);
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

.login-button img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20%;
    margin-bottom: -7px;
}

.apple-button img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20%;
    margin-bottom: -7px;
}

.contact-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.4),
        inset 0 -2px 6px rgba(0,0,0,0.25),
        0 6px 14px rgba(0,0,0,0.15);
}

/* Extra Options */
.extra-options {
    margin-top: 20px;
    font-size: 0.9em;
}

.extra-options a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-options a:hover {
    color: #0056b3;
}

.downloadApp img{
    width: 150px;
    margin-top: 5px;
}

.downloadApp p{
    margin-top: 30px;
}

/* Botón */
.downloadApp a{
    color: white; /* Color azul para el enlace */
    text-decoration: none;
}

.loginH1{
    font-size: 1.5em;
}

@media screen and ( (min-width: 768px) and (max-width: 1280px), 
                     (min-height: 768px) and (max-height: 1280px) ) {
    #landscape-warning {
        display: none !important; /* Oculto por defecto */
    }
}

/* Responsivo */
@media screen and (max-width: 768px) {
    body{
        color: #555;
        padding: 0;
        height: 100%;
        overflow: hidden;
        background: #f1f1f1;
    }
    .container {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
    }

    .intro-section, .login-section {
        width: 90%;
        padding: 5%;
        position: relative;
    }

    .login-section{
        background: transparent;
    }

    .intro-section h1 {
        font-size: 2em;
        color: white;
    }

    .intro-section h2 {
        font-size: 1.5em;
    }

    .login-box {
        max-width: 100%;
    }

    .login-button{
        background: #007bff;
        color: white;
        font-family: var(--font-family);
    }

    .contact-button{
        background: #007bff;
        color: white;
        font-family: var(--font-family);
    }

    .google-button{
        background-color: white;
        color: #007bff;
    }

    .input-group label{
        display: none;
    }

    .input-group input{
        background: transparent;
        border-top: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        border-bottom: 1px solid white;
    }

    .input-group input::placeholder{
        color: white;
    }

    .extra-options{
        color: white;
    }

    .extra-options a{
        color: white;
    }

    .logo img {
        width: 100px;
    }

    H1{
        color: #555;
    }

}

@media screen and (max-width: 480px) {
    .intro-section h1 {
        font-size: 1.8em;
    }

    .intro-section h2 {
        font-size: 1.3em;
    }

    .login-button {
        padding: 10px;
    }
}

#veloCookie {
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    top: 0;
    left: 0;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px; /* Separación del borde inferior */
    right: 20px;  /* Separación del borde derecho */
    width: 50%;   /* Ocupa la mitad del ancho de la pantalla */
    max-width: 400px; /* Ancho máximo para no ser demasiado grande en pantallas grandes */
    background: #ffffff; /* Fondo blanco */
    color: #333333; /* Texto oscuro */
    padding: 20px;
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    z-index: 1000;
    display: none; /* Oculto por defecto */
}

.cookie-content {
    text-align: left;
}

.cookie-content h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #007bff; /* Color azul para el título */
}

.cookie-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: #007bff; /* Color azul para el enlace */
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cookie-button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.cookie-button.accept {
    background: #007bff; /* Fondo azul */
    color: #ffffff; /* Texto blanco */
    border: 1px solid #007bff; /* Borde azul */
}

.cookie-button.reject {
    background: #ffffff; /* Fondo blanco */
    color: #007bff; /* Texto azul */
    border: 1px solid #007bff; /* Borde azul */
}

.cookie-button.configure {
    background: transparent; /* Fondo transparente */
    color: #007bff; /* Texto azul */
    border: none; /* Sin borde */
    text-decoration: underline; /* Subrayado para simular un enlace */
}

.cookie-button:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
    .cookie-banner {
        width: 85%; /* Ocupa casi todo el ancho en móviles */
        bottom: 0px;
        right: 0px;
        margin: 2.5%;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }
}

footer {
    background: transparent; /* Fondo gris claro */
    position: relative;
    bottom: 0px; /* Separación del borde inferior */
    color: white; /* Texto oscuro */
    padding: 20px;
}

footer a{
  text-decoration: none; /* Quita el subrayado */
  color: white; /* Cambia el color del enlace */
}

footer p{
  font-size: small;
}

/* Mensajes Flash */
.alert {
    padding: 15px;
    margin: 0 auto; /* Centrar horizontalmente */
    position: fixed; /* Fijar en la pantalla */
    top: 10px; /* Distancia desde la parte superior */
    left: 50%; /* Centrar horizontalmente */
    transform: translateX(-50%); /* Ajuste para centrar completamente */
    z-index: 1000; /* Asegurarse de que esté sobre otros elementos */
    width: 80%; /* Ajustar ancho relativo al tamaño de la pantalla */
    max-width: 500px; /* Limitar el ancho máximo */
    text-align: center;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Añadir sombra para destacar */
    border-radius: 8px; /* Bordes redondeados */
}

/* Éxito */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Error */
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.google-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.google-button img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20%;
    margin-bottom: -7px;
}

.google-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.google-button:active {
    background-color: #004b9a;
    transform: translateY(0);
}

/* Botón tuerca arriba a la derecha */
.settings-btn {
  position: absolute;
  top: 50px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 998;
}

/* Panel lateral oculto */
.settings-panel {
  position: fixed;
  top: 0;
  right: -300px; /* oculto al principio */
  width: 280px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 997;
}

/* Mostrar el panel */
.settings-panel.open {
  right: 0;
}

/* Contenido del panel */
.settings-content {
  padding: 20px;
  margin-top: 50px;
}

.settings-content h3 {
  margin-bottom: 20px;
  color: #007bff;
}

.settings-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-links a {
  display: block;
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.settings-links a:hover {
  background-color: #e9ecef;
  color: #007bff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 35px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #666;
}

.toggle-password:hover {
  color: #000;
}

.intro-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Puedes ajustar según tu layout */
}

.intro-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #f0f8ff;
    margin-top: 20px;
    margin-bottom: 20px;
}
