/* ==========================================================================
   1. IMPORTACIÓN DE TIPOGRAFÍAS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400&display=swap');

/* ==========================================================================
   2. VARIABLES DE DISEÑO
   ========================================================================== */
:root {
  --bg-caratula-rv: #111111;    
  --bg-transicion-rv: #4A5E73;  
  --isis-azul: #1C283F; 
  --isis-cognac: #8E5132;
  --isis-oro: #C1A67D;
  --isis-arena: #F7F4EF;        
  
  --font-rv-titulos: 'Playfair Display', serif;
  --font-rv-textos: 'Montserrat', sans-serif;
  --font-isis-serif: 'Libre Baskerville', serif;
  --font-isis-sans: 'Montserrat', sans-serif; 
}

/* ==========================================================================
   3. RESETEO Y NAVEGACIÓN (Scroll Snapping)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-color: var(--isis-azul);
  font-family: var(--font-isis-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, span, strong, blockquote {
  opacity: 1; 
  text-transform: none; 
}

h2 {
  font-family: var(--font-rv-titulos);
  font-weight: 700 !important;
  color: var(--isis-azul) !important;
  line-height: 1.2;
}

/* ==========================================================================
   4. MAQUETACIÓN DE DIAPOSITIVAS
   ========================================================================== */
.slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 60px;
  position: relative;
  overflow-y: auto; 
  overflow-x: hidden;
  scroll-snap-align: start;
}

.bg-rv-caratula { background-color: var(--bg-caratula-rv); color: #FFFFFF; }
.bg-rv-caratula h1, .bg-rv-caratula h2 { color: #FFFFFF !important; }
.bg-rv-transicion { background-color: var(--bg-transicion-rv); color: #FFFFFF; }
.bg-isis-arena { background-color: var(--isis-arena); color: var(--isis-azul); }

/* ==========================================================================
   5. COMPONENTES COMUNES
   ========================================================================== */
.header-label {
  font-family: var(--font-rv-textos);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: inherit;
  opacity: 0.5; 
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.footer-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-rv-textos);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.5;
  margin-top: 20px;
}

.content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1250px; 
  margin: 0 auto;
  padding: 40px 0; 
}

/* ==========================================================================
   6. GRIDS DE CONTENIDO
   ========================================================================== */
.logo-display { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  padding: 45px 0; 
}

.it-logo-main { width: 100%; max-width: 440px; height: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 30px; text-align: left; width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 30px; text-align: left; width: 100%; }

.column-item h3 {
  font-family: var(--font-isis-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--isis-cognac);
  margin-bottom: 12px;
}

.column-item p { font-size: 0.95rem; line-height: 1.65; color: inherit; }

/* ==========================================================================
   7. CROMATISMO Y MOCKUPS
   ========================================================================== */
.color-grid-4 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adaptable a ventanas estrechas */
  gap: 24px; 
  margin-top: 50px; 
  width: 100%; 
}

.color-card {
  background: #FFF;
  padding: 24px;
  min-height: 260px; /* Reemplaza el height fijo para evitar desbordes */
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  text-align: left;
}

.color-swatch { 
  height: 60px; 
  min-height: 60px; 
  width: 100%; 
  border-radius: 1px; 
  margin-bottom: 15px; /* Empuja el texto hacia abajo */
}
.swatch-azul { background-color: #1C283F; }
.swatch-conac { background-color: #8E5132; }
.swatch-oro { background-color: #C1A67D; }
.swatch-arena { background-color: #F7F4EF; border: 1px solid rgba(0,0,0,0.05); }

.mockups-grid-flexible { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  margin-top: 40px; 
  width: 100%; 
  max-width: 900px; 
}

.mockup-item-flex {
  height: 300px; 
  overflow: hidden; 
  border-radius: 20px; 
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  background-color: #FFFFFF;
}
.mockup-item-flex img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   8. CONTRATAPA EDITORIAL Y FIRMA
   ========================================================================== */
.tyet-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; 
}
.tyet-circle img { 
  width: 85px; /* Tamaño final del isotipo en pantalla */
  height: auto; 
  /* Eliminamos fondos, bordes y filtros. Dejamos que tu SVG brille tal cual es. */
}

.closing-logo { max-width: 320px; margin-bottom: 40px; display: block; } 

.closing-phrase {
  font-family: var(--font-isis-sans);
  font-size: 0.9rem;
  letter-spacing: 0.5em; 
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.8;
  color: var(--isis-azul);
}

.rv-footer-bar {
  background-color: var(--bg-caratula-rv);
  width: 100vw;
  height: 100px;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  color: #FFFFFF;
  z-index: 10;
}

.rv-footer-bar a {
  font-family: var(--font-rv-textos);
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: #FFFFFF !important;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.rv-footer-bar a:hover { opacity: 1; }

/* Aseguramos que todas las slides tengan un flujo de documento real */
.slide {
    position: relative; /* Cambiado de absolute a relative */
    width: 100%;
    min-height: 100vh;  /* Cada slide ocupa al menos la altura de la pantalla */
    display: flex;      /* Usamos flexbox para controlar todo el contenido */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* El contenedor del logo ahora es el que manda */
.logo-display {
    position: relative;
    width: 100%;
    max-width: 440px; /* Ancho máximo coherente */
    margin: 20px auto;
    z-index: 10;      /* Asegura que esté por encima de cualquier otro elemento */
}