/* =========================================
   1. VARIABLES Y BASES (Tus 2 paletas)
   ========================================= */
:root {
  --coral: #FF5E5B;
  --gold: #FFCF3F;
  --teal: #00C9B1;
  --violet: #A259FF;
  --navy: #12183A;
  --cream: #FFF9F0;
  --pink: #FF8FAB;
  --white: #ffffff;
  --ink: #1a1209;
  --rust: #b5451b;
  --sand: #e8dcc8;
  --muted: #8a7d6b;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}


/* Añade o reemplaza esto al inicio de tu style.css */
html, body {
    margin: 0;
    padding: 0;
    border: 0;
}

.rainbow-stripe {
    height: 4px;
    width: 100%;
    display: block; /* Asegura que no se comporte como elemento de texto */
    background: linear-gradient(to right, #ff4542, #d4a373, #16a085, #2980b9);
}

nav {
    margin-top: 0; /* Asegura que no tenga margen superior */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* --- ESTILOS MENÚ HAMBURGUESA --- */

/* Ocultar el botón por defecto (en desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--navy);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block; /* Mostrar solo en móvil */
    }

    nav ul {
        display: none; /* Ocultar el menú original */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Aparece justo debajo del nav */
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* Clase que activaremos con JS */
    nav ul.active {
        display: flex;
    }
}
/* =========================================
   2. NAVEGACIÓN UNIVERSAL
   ========================================= */


.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--coral); }

nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { text-decoration: none; color: var(--navy); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; transition: 0.3s; }
nav ul a:hover { color: var(--coral); }

/* =========================================
   3. HERO (Flexbox para adaptación)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 8rem 5vw 4rem;
  gap: 3rem;
}

.hero-social {
    display: flex;
    gap: 20px;
    margin-top: 25px; /* Espacio debajo de los botones */
    justify-content: flex-start;
}


.hero-text { flex: 1; min-width: 320px; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--coral); font-style: italic; }

.hero-visual { flex: 1; display: flex; justify-content: center; min-width: 320px; }
.hero-frame { width: 100%; max-width: 400px; height: 500px; position: relative; }

.frame-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  animation: morph 8s infinite ease-in-out;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

.frame-img { position: absolute; inset: 15px; background: #fff; border-radius: inherit; overflow: hidden; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   4. SECCIONES Y BOTONES
   ========================================= */
section { padding: 6rem 5vw; }
.section-tag { color: var(--teal); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1rem; margin-bottom: 1rem; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 2rem; }

.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 4px; text-decoration: none; font-weight: 500; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }

#quien-soy, #contacto { background: var(--navy); color: var(--white); }
#quien-soy {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin: -2rem 0; padding: 8rem 5vw;
}

/* =========================================
   5. OBRAS Y CRÍTICAS (Grid responsiva)
   ========================================= */
/* Este selector fuerza a la grid de obras a ser responsiva aunque el HTML diga 3 columnas fijas */
.obras-grid {
  display: grid !important; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
}

.grid-criticas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tarjeta-critica {
  background: #ffffff; padding: 2.5rem; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; height: 100%;
  border-top: 5px solid #e67e22;
}


/* Si en móvil el texto está centrado, centramos también los iconos */
@media (max-width: 992px) {
    .hero-social {
        justify-content: center;
    }
}

.hero-social a {
    color: #12183a; /* Color oscuro */
    font-size: 1.5rem; /* Tamaño del icono */
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-social a:hover {
    color: #ff4542; /* El color rojo/naranja que usas en el diseño */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
}


/* Clases de colores para tarjetas */
.c-verde { border-top-color: #1abc9c; }
.c-amarillo { border-top-color: #f1c40f; }
.c-morado { border-top-color: #9b59b6; }
.c-azul { border-top-color: #2980b9; }
.c-gris { border-top-color: #34495e; }
.c-rojo { border-top-color: #c0392b; }
.c-esmeralda { border-top-color: #27ae60; }
.c-violeta { border-top-color: #8e44ad; }
.c-arena { border-top-color: #d4a373; }

.autor-info { margin-top: auto; display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.avatar { width: 45px; height: 45px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.extra { display: none; }

/* =========================================
   6. GALERÍA INFINITE Y MODAL
   ========================================= */
.galeria-infinite-container { width: 100%; height: 75vh; overflow: hidden; position: relative; margin-top: 2rem; }
.galeria-track { display: flex; gap: 20px; justify-content: center; height: 100%; max-width: 1200px; margin: 0 auto; }
.gal-col { flex: 1; max-width: 350px; overflow: hidden; }
.gal-scroll { display: flex; flex-direction: column; gap: 20px; animation: scrollVertical 30s linear infinite; }
.gal-scroll.reverse { animation: scrollVerticalReverse 35s linear infinite; }

@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollVerticalReverse { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

.galeria-infinite-container:hover .gal-scroll { animation-play-state: paused; }

/* =========================================
   7. MEDIA QUERIES (El toque responsivo final)
   ========================================= */
@media (max-width: 900px) {
  nav ul { display: none; } /* Oculta menú en móviles */
  
  .hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-visual { order: -1; width: 100%; }
  .hero-frame { height: 380px; margin: 0 auto; }
  
  /* Botones del Hero apilados */
  .hero-text div { display: flex; flex-direction: column; gap: 15px; align-items: center; }
  .hero-text div .btn { margin-left: 0 !important; width: 100%; max-width: 300px; }
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  
  /* Ajuste de sección inclinada para evitar espacios blancos laterales */
  #quien-soy { clip-path: none; margin: 0; padding: 4rem 5vw; }
  
  /* Formulario de contacto */
  .contact-grid { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 2rem !important; 
  }

  /* Galería Infinite en móvil (Oculta columnas extra para fluidez) */
  .gal-col:last-child { display: none; }
  .galeria-infinite-container { height: 60vh; }
  
  /* Obras Destacadas: Ajuste de header */
  #obras div[style*="display:flex"] { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
  }
}

footer { background: var(--navy); text-align: center; padding: 3rem; color: rgba(255,255,255,0.4); font-size: 0.9rem; }


/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
:root {
    --ink: #1a1209;
    --cream: #faf6f0;
    --gold: #c9973a;
    --rust: #b5451b;
    --sage: #6b8f71;
    --sand: #e8dcc8;
    --muted: #8a7d6b;
    --sky: #7ba8bc;
    --coral: #FF5E5B; /* Consistencia con index */
}

*, *::before, *::after { 
    margin: 0; padding: 0; box-sizing: border-box; 
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    padding-top: 80px; /* Espacio para el nav */
}

/* =========================================
   2. NAVEGACIÓN Y ESTRUCTURA
   ========================================= */
.rainbow-stripe { 
    height: 6px; 
    background: linear-gradient(90deg, #FF5E5B, #FFCF3F, #00C9B1, #A259FF, #FF8FAB); 
    position: fixed; top: 0; width: 100%; z-index: 1001;
}

nav {
    position: fixed; top: 0; width: 100%; background: rgba(250, 246, 240, 0.95);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5vw; z-index: 1000; border-bottom: 1px solid var(--sand);
    backdrop-filter: blur(10px);
}

.nav-logo { 
    font-family: 'Playfair Display', serif; font-size: 1.5rem; 
    text-decoration: none; color: var(--ink); font-weight: 700; 
}
.nav-logo span { color: var(--rust); }

nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { 
    text-decoration: none; color: var(--muted); 
    font-size: 0.75rem; letter-spacing: 0.1em; 
    text-transform: uppercase; transition: 0.3s; 
}
nav a:hover { color: var(--rust); }

/* =========================================
   3. FILTROS (Sección de cabecera)
   ========================================= */
.filter-section { padding: 3rem 5vw 1rem; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }

.filters { 
    display: flex; flex-wrap: wrap; gap: 0.5rem; 
    justify-content: center; margin-top: 1rem; 
}

.filter-btn {
    font-family: 'Josefin Sans', sans-serif; font-size: 0.7rem; 
    padding: 0.6rem 1.2rem; border: 1px solid var(--sand);
    background: white; color: var(--muted); cursor: pointer; 
    transition: 0.3s; border-radius: 50px; text-transform: uppercase;
}
.filter-btn.active, .filter-btn:hover { 
    background: var(--ink); color: var(--cream); border-color: var(--ink); 
}

/* =========================================
   4. TIMELINE RESPONSIVO (Core)
   ========================================= */
.timeline-wrap { 
    padding: 2rem 5vw 6rem; position: relative; 
    max-width: 1000px; margin: 0 auto; 
}

/* Línea central que se ajusta en móvil */
.timeline-spine { 
    position: absolute; left: 30px; top: 0; bottom: 0; 
    width: 2px; background: var(--sand); 
}

.year-block { 
    display: flex; justify-content: flex-start; 
    margin: 3rem 0 1.5rem; position: relative; z-index: 2; 
}

.year-label { 
    font-family: 'Playfair Display', serif; font-size: 1.5rem; 
    font-weight: 700; color: var(--ink); background: var(--cream); 
    padding: 0.2rem 1rem; border: 1px solid var(--sand); border-radius: 50px; 
}

/* Entradas del Timeline */
.entry { 
    display: flex; align-items: flex-start; 
    margin-bottom: 2rem; position: relative; 
    opacity: 0; transform: translateY(20px); transition: 0.6s ease forwards; 
}

.entry.visible { opacity: 1; transform: translateY(0); }

.entry-node { 
    width: 16px; height: 16px; border-radius: 50%; 
    background: var(--rust); border: 3px solid var(--cream); 
    box-shadow: 0 0 0 1px var(--sand); 
    position: absolute; left: 23px; top: 10px; z-index: 3;
}

.entry-card { 
    margin-left: 60px; /* Espacio para la línea y el nodo en móvil */
    background: white; padding: 1.5rem; border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 100%;
}

.cat-tag { 
    font-family: 'Josefin Sans', sans-serif; font-size: 0.6rem; 
    letter-spacing: 0.1em; text-transform: uppercase; 
    padding: 2px 8px; border-radius: 4px; color: white; margin-bottom: 0.5rem; display: inline-block;
}

/* Colores de categorías */
.cat-exposicion { background: var(--rust); }
.cat-formacion { background: var(--sage); }
.cat-proyecto { background: var(--gold); }
.cat-premio { background: var(--sky); }
.cat-feria { background: #d4a373; }

.entry-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.entry-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* =========================================
   5. AJUSTES PARA PANTALLAS GRANDES (Desktop)
   ========================================= */
@media (min-width: 768px) {
    .timeline-spine { left: 50%; transform: translateX(-50%); }
    
    .year-block { justify-content: center; }
    .year-label { font-size: 2rem; }

    .entry.left { flex-direction: row; }
    .entry.right { flex-direction: row-reverse; }

    .entry-node { left: 50%; transform: translateX(-50%); top: 20px; }

    .entry-card { 
        width: calc(50% - 50px); 
        margin-left: 0;
    }

    .entry.left .entry-card { margin-right: 50px; text-align: right; }
    .entry.right .entry-card { margin-left: 50px; text-align: left; }
    
    .entry-spacer { flex: 1; }
}

/* =========================================
   6. FOOTER
   ========================================= */
footer { text-align: center; padding: 4rem; border-top: 1px solid var(--sand); color: var(--muted); font-size: 0.8rem; }

@media (max-width: 600px) {
    nav ul { display: none; } /* Ocultar menú en móvil muy pequeño o usar menú hamburguesa */
    .filter-btn { font-size: 0.6rem; padding: 0.5rem 1rem; }
}

/* =========================================
   BOTONES SÓLIDOS CON DISTINTOS COLORES
   ========================================= */

/* Base común para ambos botones */
.hero-text .btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    color: white !important; /* Texto siempre blanco */
}

/* --- BOTÓN 1: CORAL (Portafolio) --- */
.btn-primary {
    background: var(--coral);
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.3);
    margin-right: 12px;
}

.btn-primary:hover {
    background: #ff4542; /* Coral más intenso */
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 94, 91, 0.5);
}

/* --- BOTÓN 2: TEAL (Escríbeme) --- */
/* Usamos !important para anular el estilo 'btn-outline' previo sin cambiar la clase */
.btn-outline {
    background: var(--teal) !important; 
    box-shadow: 0 4px 15px rgba(0, 201, 177, 0.3);
    margin-left: 0 !important; /* El margen lo manejamos en el contenedor o con el primer botón */
}

.btn-outline:hover {
    background: #00b39d !important; /* Teal más profundo */
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 201, 177, 0.5);
}

/* Efecto al presionar (ambos) */
.hero-text .btn:active {
    transform: translateY(-2px);
}

/* --- RESPONSIVO --- */
@media (max-width: 600px) {
    .hero-text div {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-text .btn {
        width: 100%;
        max-width: 300px;
        margin-right: 0 !important;
    }
}


/* =========================================
   ESTILO UNIFICADO PARA "VER MÁS AUTORES"
   ========================================= */

.btn-estilo {
    display: inline-block;
    padding: 0.7em 1.1rem;
    border-radius: 50px; /* Bordes redondeados consistentes */
    text-decoration: none;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.80rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Fondo Violeta (Color artístico) */
    background: #8e44ad; 
    color: white !important;
    border: none;
    
    /* Sombra inicial */
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    
    /* Transición elástica */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin-top: 30px;
    position: relative;
}

/* Efecto Hover */
.btn-estilo:hover {
    background: #9b59b6; /* Un violeta más claro */
    transform: translateY(-2px) scale(1.00);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.5);
    letter-spacing: 1.5px;
}

/* Efecto Click */
.btn-estilo:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Ajuste sutil para el texto del botón al cambiar */
#boton-toggle {
    min-width: 250px; /* Evita que el botón cambie de tamaño bruscamente al cambiar el texto */
}
.extra-author {
    display: none !important;
}

/* Esta regla es para cuando el JS les ponga el estilo en línea */
.extra-author[style*="display: flex"] {
    display: flex !important;
}

/* Fondo del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000; /* Por encima de la navegación */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro semi-transparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque al fondo */
    overflow: hidden;
}

/* Imagen dentro del Modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh; /* Para que no se salga de la pantalla */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* Texto debajo de la imagen */
#caption {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 5%;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

/* Botón de cerrar (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #bbb;
}


#custom-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    font-family: 'DM Sans', sans-serif;
    border: 1px solid rgba(155, 89, 182, 0.1);
    
    /* Animación inicial */
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#custom-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon-container {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F0EBF8 0%, #E5D9F2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-main-icon {
    color: #9b59b6;
    font-size: 1.2rem;
    animation: pulse-icon 2s infinite;
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

#toast-message {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Barra de progreso visual que se agota */
.toast-progress {
    height: 3px;
    background: #9b59b6;
    width: 0%;
    margin-top: 12px;
    border-radius: 10px;
    transition: width 4s linear;
}

#custom-toast.show .toast-progress {
    width: 100%;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}



.social-icon-link {
    transition: all 0.3s ease;
    opacity: 0.7;
    display: inline-block;
}

.social-icon-link:hover {
    opacity: 1;
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
}

/* Efecto opcional: resplandor morado al pasar el mouse */
.social-icon-link:hover svg {
    stroke: #9b59b6; 
    filter: drop-shadow(0 0 5px rgba(155, 89, 182, 0.5));
}


/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #12183a;
}

.nav-logo span { color: #ff4542; }

nav ul { display: flex; list-style: none; gap: 1.5rem; }

nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover { color: #ff4542; }

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    gap: 4rem;
    min-height: 80vh;
}

.hero-text { flex: 1; }

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 1.5rem 0;
}

.hero-text em { color: #ff4542; font-style: italic; }

.hero-quote { font-size: 1.2rem; margin-bottom: 2rem; color: #555; }

.hero-visual { flex: 1; display: flex; justify-content: center; }

.hero-frame { position: relative; width: 100%; max-width: 450px; }

.frame-img img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.frame-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    border-radius: 10px;
    z-index: 1;
}

.hero-btns { display: flex; gap: 10px; }

/* --- BUTTONS --- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary { background: #ff4542; color: #fff; }
.btn-outline { border: 2px solid #ff4542; color: #ff4542; }
.btn-primary:hover { opacity: 0.9; }

/* --- SECTIONS COMMON --- */
section { padding: 4rem 5%; }

.section-tag {
    color: #ff4542;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* --- OBRAS SLIDER --- */
.obras-section { background: #fafafa; padding: 4rem 2vw; }

.obras-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.tag-gold { color: #d4a373 !important; }

.link-gallery {
    color: #d4a373;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #d4a373;
    padding-bottom: 4px;
}

.link-gallery:hover {
    color: #c9973a;
    border-color: #c9973a;
    
}

.slider-wrapper {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar { display: none; }

.obra-card-medium {
    flex: 0 0 280px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    scroll-snap-align: start;
}

.obra-card-medium:hover { transform: scale(1.03); }

.obra-card-medium img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn {
    position: absolute;
    z-index: 10;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.2rem;
}

.btn-prev { left: -15px; }
.btn-next { right: -15px; }

/* --- VISOR --- */
#visor-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); display: none; justify-content: center;
    align-items: center; z-index: 9999; cursor: zoom-out;
}

#visor-img { max-width: 90%; max-height: 85vh; border-radius: 4px; }

.close-visor {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 45px;
}

/* --- COMENTARIOS --- */
.comentarios-section { background: #faf6f0; }

.comentarios-header { text-align: center; margin-bottom: 4rem; }

.comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.comment-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.comment-card h3 { margin-bottom: 1rem; font-family: 'Playfair Display', serif; }

.comment-body { color: #636e72; flex-grow: 1; }

.comment-body details { cursor: pointer; margin-top: 1rem; }

.comment-body summary { color: #d4a373; font-weight: bold; outline: none; }

.full-critica { font-size: 0.95rem; padding-top: 1rem; color: #444; }

.comment-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.author-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; margin-right: 1rem;
}

.author-info { font-size: 0.85rem; }
.author-info span { color: #888; }

/* Colores de Críticos */
.c-orange { color: #e67e22; } .bg-orange { background: #e67e22; }
.c-teal { color: #16a085; } .bg-teal { background: #16a085; }
.c-yellow { color: #f1c40f; } .bg-yellow { background: #f1c40f; }
.c-purple { color: #8e44ad; } .bg-purple { background: #8e44ad; }
.c-navy { color: #34495e; } .bg-navy { background: #34495e; }
.c-blue { color: #2980b9; } .bg-blue { background: #2980b9; }
.c-deeporange { color: #d35400; } .bg-deeporange { background: #d35400; }
.c-green { color: #27ae60; } .bg-green { background: #27ae60; }
.c-gray { color: #7f8c8d; } .bg-gray { background: #7f8c8d; }
.c-softpurple { color: #9b59b6; } .bg-softpurple { background: #9b59b6; }

.btn-toggle-wrapper { text-align: center; margin-top: 4rem; }

.btn-primary-outline {
    cursor: pointer; font-weight: bold; font-size: 1rem;
    transition: 0.3s; background: none;
    border: 2px solid #ff4542; color: #ff4542;
    padding: 0.8rem 2rem; border-radius: 50px; outline: none;
}

.btn-primary-outline:hover { background: #ff4542; color: white; }

/* --- CONTACTO --- */
.contacto-section { background: #12183a; color: white; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.title-white { color: white !important; }

.contact-desc { opacity: 0.8; margin-bottom: 2rem; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; margin-bottom: 1rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; border-radius: 4px; font-family: inherit;
}

.btn-submit {
    width: 100%; background: rgba(0, 201, 177, 0.5);
    color: white; border: 2px solid rgba(0, 201, 177, 0.5);
    padding: 1rem; border-radius: 8px; font-weight: bold;
    cursor: pointer; transition: 0.3s; outline: none;
    letter-spacing: 1px;
}

.btn-submit:hover { background: transparent; color: rgba(0, 201, 177, 1); }

/* --- TOAST --- */
#custom-toast {
    position: fixed; bottom: 40px; right: 40px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    color: #444; padding: 1.2rem 2.2rem; border-radius: 20px;
    box-shadow: 0 15px 45px rgba(212, 163, 115, 0.15);
    border: 1px solid #f1f1f1; display: flex; align-items: center;
    gap: 18px; transform: translateX(130%); opacity: 0;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); z-index: 10000;
}

#custom-toast.show { transform: translateX(0); opacity: 1; }

.toast-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0; color: white;
}

/* --- FOOTER --- */
footer {
    background: #0d1127; color: rgba(255,255,255,0.4);
    text-align: center; padding: 2rem; font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
    .hero-btns { justify-content: center; }
    .obras-header { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
}

@media (max-width: 600px) {
    nav ul { display: none; } /* Podrías añadir un menú hamburguesa aquí */
    section { padding: 3rem 5%; }
    .hero-text h1 { font-size: 2.5rem; }
    .slider-btn { display: none; } /* Ocultar flechas en móvil para usar touch scroll */
    #custom-toast { right: 10px; left: 10px; bottom: 20px; padding: 1rem; }
}

.rainbow-stripe {
    height: 4px;
    background: linear-gradient(to right, #ff4542, #d4a373, #16a085, #2980b9);
}




/* --- OPTIMIZACIÓN DEL NAV (Móvil) --- */
@media (max-width: 900px) {
    .menu-toggle {
        display: block; /* Muestra las 3 líneas */
    }

    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }

    nav ul.active {
        display: flex; /* Se despliega al tocar el botón */
    }
}

/* --- OPTIMIZACIÓN DEL HERO (Sección Principal) --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Apila imagen y texto */
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-text {
        min-width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem; /* Tamaño de letra más cómodo para móvil */
    }

    .hero-visual {
        order: -1; /* Pone la imagen arriba del texto en el celular */
        width: 100%;
    }

    .hero-frame {
        max-width: 280px; /* Imagen más pequeña en móviles */
        height: 350px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%; /* Botones anchos para fácil acceso táctil */
    }
}

/* --- OPTIMIZACIÓN DE "QUIÉN SOY" Y SECCIONES OSCURAS --- */
@media (max-width: 768px) {
    #quien-soy {
        clip-path: none; /* Quitamos el corte inclinado en móvil para evitar espacios blancos */
        margin: 0;
        padding: 4rem 5vw;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* --- OPTIMIZACIÓN DE TESTIMONIOS (Móvil) --- */
.comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Hace que las tarjetas se acomoden solas */
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .comments-container {
        grid-template-columns: 1fr; /* Una sola columna en teléfonos muy pequeños */
    }
    
    .comment-card {
        padding: 1.5rem;
    }
}


