/* --- RESET Y FORMULARIOS --- */
/* Fuerza a que el móvil use TU diseño y no el gris del sistema */
select, 
input[type="date"], 
input[type="text"],
input[type="email"] {
    -webkit-appearance: none;  /* Para Safari/iOS */
    -moz-appearance: none;     /* Para Firefox */
    appearance: none;          /* Estándar moderno */
    
    background-color: #ffffff; /* O el color que quieras (asegura que no sea gris) */
    color: #000000;            /* Color del texto */
    opacity: 1;                /* iOS a veces baja la opacidad por defecto */
}

/* --- ESTRUCTURA BASE --- */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

.main-content {
    flex: 1 0 auto;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- LOGO --- */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.main-logo {
    width: 100%;
    height: auto;
    max-width: 744px; 
    display: inline-block; 
}
.trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background: #f8fafc; /* Gris muy suave, profesional */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 600px) {
    .trust-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* --- BLOQUES Y CAJAS --- */
h1 { text-align: center; color: #2c3e50; }

.box { 
    background: #f8f9fa; 
    border: 1px solid #ddd; 
    padding: 25px; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}

.box-title {
    text-align: center;
}

.premium { 
    border: 1px solid #007bff; 
    background-color: #f0f7ff; 
}

.box-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.warning-title {
    color: #856404;
    text-align: center;
}

.blurred-content {
    filter: blur(5px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    margin-bottom: 20px;
}

.payment-box {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.payment-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #2c3e50;
}

.payment-secure-note {
    font-size: 0.8em;
    color: #999;
    margin-top: 15px;
}

/* --- FORMULARIOS --- */
label { font-weight: bold; display: block; margin-bottom: 5px; font-size: 0.9em; }

.hidden-label { display: none; }

.date-label {
    font-size: 0.9em;
    display: block;
    color: #333;
}

input, select, textarea { 
    margin-bottom: 15px; 
    padding: 12px; 
    width: 100%; 
    box-sizing: border-box; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    font-size: 16px; 
    -webkit-appearance: none;
    appearance: none;
}

textarea { font-family: monospace; background-color: #fafafa; resize: vertical; }

/* --- BOTONES --- */
button { 
    cursor: pointer; 
    font-weight: bold; 
    border: none; 
    border-radius: 8px; 
    padding: 15px; 
    width: 100%; 
    font-size: 16px; 
    transition: all 0.3s ease; 
}

/* Botón Azul (Generar y Pago 10€) */
.btn-secondary { 
    background-color: #007bff; 
    color: white; 
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); 
}
.btn-secondary:hover { 
    background-color: #0056b3; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); 
}
.btn-primary {
    color: white;
    background: #415c78;
    border: 1px solid #415c78;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); 
} 
.btn-primary:hover {
    color: white;
    border: 1px solid #2c3e50fc;
    background: #2c3e50fc; 
    border-radius: 6px;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); 
}

/* Botón Verde (Pago Premium 149€) */
.btn-success {
    background-color: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}
.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}
/* --- Consola de Escaneo RastroZero --- */
.console-loader {
    display: none;
    margin-top: 20px;
    text-align: left;
    color: #475569; /* Gris pizarra elegante y profesional */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 10px 15px;
    font-weight: bold;
}

/* Animación de parpadeo suave para que parezca que procesa en tiempo real */
.console-loader span {
    display: inline-block;
    animation: blinker 1.2s linear infinite;
}

@keyframes blinker {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Limpieza del prefijo duplicado */
.console-loader span::before {
    content: ""; 
}
/* --- LISTAS PREMIUM --- */
.premium ul { 
    text-align: left; 
    font-size: 0.9em; 
    color: #555; 
    list-style: none; 
    padding-left: 0; 
    margin: 20px 0; 
}
.premium li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
    color: #555;
}
.premium li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.premium-subtitle {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.premium-secure-note {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    margin-top: 10px;
}
/* Estilo para que los enlaces se integren perfectamente en la lista */
.feat-list-link {
    color: #555; /* El mismo gris de tus otros <li> */
    text-decoration: none;  /* Eliminamos el subrayado azul feo */
    font-weight: bold;      /* Mantiene la negrita */
    transition: all 0.2s ease;
}

/* EFECTO HOVER: Solo aparece el subrayado al pasar el ratón */
.feat-list-link:hover {
    text-decoration: underline;
}
/* --- ALERTAS --- */
.alert { padding: 15px; margin: 10px 0; border-radius: 6px; font-weight: bold; text-align: center; }
.alert-error { background-color: #fdeaea; border: 1px solid #e0b4b4; color: #c23934; }
.error-hint { font-weight: normal; }

/* --- SECCIÓN LEGAL (DENTRO DE MAIN CONTENT) --- */
.seccion-legal {
    text-align: center;
    padding: 30px;
    margin-top: 30px; /* Separación de la caja de arriba */
}

.legal-icon {
    width: 50px;
    height: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    margin-bottom: 15px;
    display: inline-block;
}

.seccion-legal h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.seccion-legal p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    text-align: justify; /* Da un aspecto de documento legal más serio */
    text-justify: inter-word;
}

/* --- FOOTER REFINADO --- */
.site-footer {
    flex-shrink: 0;
    padding: 40px 20px; /* Un poco más de aire arriba y abajo */
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    text-align: center;
    color: #888; /* Gris un pelín más oscuro para lectura */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px; /* Más espacio entre links */
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-links a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0077b5; /* Azul LinkedIn al pasar el ratón */
    transform: translateY(-3px);
}

/* Contenedor del enlace social */
.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* Imagen del logo social */
.social-logo {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    /* Combinamos el grayscale e invert para el tono exacto. */
    filter: grayscale(1) brightness(0.7); 
    transition: filter 0.3s ease, transform 0.2s ease;
}

/* Efectos al pasar el ratón */
.social-link:hover .social-logo {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1); /* Un toque de feedback visual */
}

.social-text {
    font-size: 14px;
    color: inherit;
}

.footer-trust {
    font-size: 13px;
    margin-bottom: 15px;
    color: #575757;
}

.footer-trust strong {
    color: #555; /* Stripe resalta sutilmente */
}

.footer-copy {
    font-size: 12px;
    color: #aaa8a8;
    margin: 0;
}

/* Estilo específico para el nuevo enlace de consultas */
.footer-cases-link {
    color: #0077b5; /* Usamos tu azul de LinkedIn para coherencia */
    text-decoration: none;
    font-weight: 600;
    margin-left: 3px;
    transition: all 0.3s ease;
}

.footer-cases-link:hover {
    color: #005a87; /* Un azul un pelín más oscuro al pasar el ratón */
    text-decoration: underline;
}

@media (max-width: 411px) {
    .linkedin-text { display: none; }
    .footer-links { gap: 15px; }
    .site-footer { padding: 30px 15px; }
}
