/* =========================================
   1. IMPORTACIÓN Y CONFIGURACIÓN GENERAL
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

:root {
    --almendra: #f1dac4;
    --gris-purpura: #a69cac;
    --azul-oxford: #474973;
    --azul-marino: #161b33;
    --negro-noche: #0d0c1d;
}

body { color: var(--azul-marino); line-height: 1.5; min-height: 100vh; border: 10px solid rgba(255, 255, 255, 0.4); background-attachment: fixed; font-size: 0.9rem; }

body.pagina-inicio { background: linear-gradient(135deg, #ffffff 0%, rgba(241, 218, 196, 0.7) 100%); }
body.pagina-trayectoria { background: linear-gradient(135deg, #ffffff 0%, rgba(166, 156, 172, 0.4) 100%); }
body.pagina-citas { background: linear-gradient(135deg, rgba(71, 73, 115, 0.1) 0%, rgba(241, 218, 196, 0.5) 100%); }

/* =========================================
   2. BOTONES DE IDIOMA CON BANDERAS REALES
   ========================================= */
.traductor-contenedor { display: flex; justify-content: flex-end; gap: 12px; padding: 10px 35px 0; max-width: 1000px; margin: 0 auto; }
.bandera-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(71, 73, 115, 0.4);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    background-size: cover;
    background-position: center;
}
.bandera-btn:hover { transform: scale(1.1); border-color: var(--azul-oxford); }

/* Filtro blanco semitransparente sobre la bandera */
.bandera-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1;
}

/* Letras ES y EN sobre la bandera */
.bandera-texto {
    position: relative;
    z-index: 2;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--negro-noche);
    text-shadow: 0px 0px 4px rgba(255,255,255,0.9);
}

.marco-global { max-width: 1000px; margin: 1vh auto 2vh; padding: 25px 35px; background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(166, 156, 172, 0.4); border-radius: 20px; box-shadow: 0 15px 50px rgba(22, 27, 51, 0.08); }

.contenedor { width: 100%; padding: 10px 0; }
h1, h2, h3 { color: var(--negro-noche); font-weight: 700; }
p { margin-bottom: 8px; color: #2c3140; }

/* =========================================
   3. CABECERA Y NAVEGACIÓN
   ========================================= */
header { text-align: center; padding: 5px; }
header h1 { font-size: 2.1em; font-weight: 800; background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-oxford) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitulo { font-size: 0.75em; color: var(--azul-oxford); font-weight: 600; text-transform: uppercase; background: rgba(255, 255, 255, 0.6); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(166, 156, 172, 0.4); display: inline-block; }

nav { display: flex; justify-content: center; gap: 10px; margin: 15px 0 20px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--azul-oxford); font-weight: 600; font-size: 0.75em; padding: 7px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.7); border: 2px solid rgba(71, 73, 115, 0.4); transition: 0.3s; }
nav a:hover { background: var(--azul-oxford); color: white; }
nav a.active { display: none !important; }

.boton-cv-nav { background: var(--almendra) !important; color: var(--azul-marino) !important; border-color: var(--almendra) !important; font-weight: 800 !important; }
.boton-cv-nav:hover { background: var(--azul-marino) !important; color: white !important; }

/* =========================================
   4. PERFIL Y FOTO
   ========================================= */
.perfil-hero { display: flex; align-items: center; gap: 25px; margin-bottom: 20px; }
.perfil-img-container { flex-shrink: 0; width: 140px; height: 140px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(166, 156, 172, 0.5); background: white; }
.perfil-img-container img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* =========================================
   5. GRID DE PROYECTOS (INICIO)
   ========================================= */
.grid-proyectos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tarjeta-proyecto { background: rgba(255, 255, 255, 0.75); border-radius: 10px; border: 2px solid rgba(71, 73, 115, 0.4); overflow: hidden; display: flex; flex-direction: column; padding: 15px; transition: 0.3s; }
.tarjeta-proyecto:hover { transform: translateY(-5px); border-color: var(--azul-oxford); }
.tarjeta-proyecto img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #f8f8f8; border-radius: 6px; margin-bottom: 10px; }
.tarjeta-proyecto-content { text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.tarjeta-proyecto h3 { font-size: 0.85em; margin-bottom: 4px; }
.tarjeta-proyecto p { font-size: 0.7rem; margin-bottom: 8px; color: #4a5568; }
.boton { display: inline-block; background: var(--azul-oxford); color: white; padding: 5px 12px; font-size: 0.65em; text-decoration: none; border-radius: 20px; font-weight: 600; margin-top: auto; align-self: center; transition: 0.3s; }

/* =========================================
   6. RECUADRO DE DATOS FINAL
   ========================================= */
.seccion-final { margin-top: 40px; text-align: center; display: flex; justify-content: center; }
.recuadro-datos-resaltado { background: rgba(255, 255, 255, 0.8); border: 2px solid var(--azul-oxford); padding: 12px 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: inline-flex; align-items: center; gap: 12px; }
.enlace-dato { color: var(--azul-marino); text-decoration: none; font-weight: 700; font-size: 0.85rem; } 
.enlace-dato:hover { color: var(--azul-oxford); }
.separador-dato { color: #a69cac; font-weight: 300; }

/* =========================================
   7. TRAYECTORIA Y CITAS (DISEÑO TARJETAS)
   ========================================= */
.trayectoria-item { 
    background: rgba(255, 255, 255, 0.85); 
    border: 1px solid rgba(166, 156, 172, 0.4); 
    border-radius: 12px; 
    padding: 25px 30px; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 15px rgba(22, 27, 51, 0.05); 
}
.trayectoria-item h2 { font-size: 1.15em; color: var(--negro-noche); margin-bottom: 15px; border-bottom: 1px solid rgba(166, 156, 172, 0.3); padding-bottom: 12px; display: block; }
.trayectoria-item p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 12px; color: #2c3140; }
.trayectoria-item ul { margin-left: 20px; margin-bottom: 15px; }
.trayectoria-item li { font-size: 0.85rem; margin-bottom: 10px; line-height: 1.5; color: #4a5568; }
.trayectoria-item strong { color: var(--azul-marino); font-weight: 700; }

.quote-item { background: rgba(255, 255, 255, 0.75); border-radius: 10px; border: 2px solid rgba(71, 73, 115, 0.4); padding: 18px; margin-bottom: 15px; }
.quote-text { font-size: 0.9em; margin-bottom: 8px; font-style: italic; }
.quote-source { font-weight: 600; font-size: 0.8em; color: var(--azul-oxford); text-align: right; }

/* =========================================
   8. WIDGET TRADUCTOR Y PIE DE PÁGINA
   ========================================= */
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0px !important; }
footer { text-align: center; padding: 15px; font-size: 0.7em; color: #a69cac; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 20px; }

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 850px) { .grid-proyectos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { 
    .grid-proyectos { grid-template-columns: 1fr; } 
    .perfil-hero { flex-direction: column; text-align: center; }
    .recuadro-datos-resaltado { flex-direction: column; gap: 5px; padding: 15px; } 
    .separador-dato { display: none; }
    .traductor-contenedor { justify-content: center; padding: 10px 10px 0;}
    .trayectoria-item { padding: 15px 20px; }
}