/* ==========================================
   RESET - Limpia márgenes por defecto
   El asterisco (*) es OBLIGATORIO al inicio
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   FONDO DE LA PÁGINA
   ========================================== */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

/* ==========================================
   HEADER CON LOGO (clase: site-header)
   ========================================== */
.site-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.site-logo {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   SELECTOR DE IDIOMAS (clase: lang-selector)
   ========================================== */
.lang-selector {
    text-align: center;
    margin-bottom: 25px;
    padding: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-selector a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
}

.lang-selector a:hover {
    background: #667eea;
    color: white;
}

/* ==========================================
   CONTENEDOR PRINCIPAL (clase: container)
   ========================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.container > p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* ==========================================
   FORMULARIO
   ========================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: 500;
    color: #2c3e50;
    margin-top: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="file"],
select,
textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', Arial, sans-serif;
    transition: all 0.3s;
    width: 100%;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================
   BOTÓN DE ENVÍO (clase: btn)
   ========================================== */
.btn {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE (celulares y tablets)
   ========================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px;
    }
    
    .site-logo {
        max-height: 80px;
    }
    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .lang-selector a {
        display: block;
        margin: 5px 0;
    }
}
/* ==========================================
   ESTILOS PARA SELECTOR DE IDIOMAS Y ACCESO ADMIN
   ========================================== */
.lang-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-admin-access {
    background: #667eea;
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background 0.3s;
    display: inline-block;
}

.btn-admin-access:hover {
    background: #5a6fe8;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .lang-selector {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .admin-link-container {
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .btn-admin-access {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}