
*, *::before, *::after {
  box-sizing: border-box; /* padding y border no afectan ancho */
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;       /* Tamaño base consistente */
  line-height: 1.8;      /* Espaciado uniforme para todos los textos */
  color: #333;           /* Color uniforme para todos los textos */
  background-color: #fff; /* Fondo consistente */
}
/* HERO – imagen de portada */

.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* cierre */

/* ---------------------------
   Fuentes
---------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

/* ---------------------------
   Body general
---------------------------- */
body {
  font-family: "Lato", sans-serif; /* tu fuente principal */
  padding-top: 1000px; /* espacio coherente para navbar fixed */
  margin: 0;
}

/* ---------------------------
   Navbar general
---------------------------- */
.navbar {
  background-color: #fff !important;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
}

/* ---------------------------
   Logo BAIFO
---------------------------- */
.brand-perfect {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 1.5rem;
  color: #111 !important;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: 3rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

/* ---------------------------
   Nav links menú
---------------------------- */
.navbar-nav {
  display: flex !important; /* horizontal en desktop */
  gap: 1.8rem;
}

.navbar-nav .nav-link {
  color: #111 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}

.navbar-nav .nav-link:hover {
  opacity: 0.7;
}

/* ---------------------------
   Toggler hamburguesa animado
---------------------------- */
.navbar-toggler {
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin-left: 2rem;
  transition: transform 0.3s;
}

.navbar-toggler span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #111;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.navbar-toggler.collapsed span:nth-child(1) { transform: rotate(0deg) translateY(0); }
.navbar-toggler.collapsed span:nth-child(2) { opacity: 1; }
.navbar-toggler.collapsed span:nth-child(3) { transform: rotate(0deg) translateY(0); }

.navbar-toggler.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; }
.navbar-toggler.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ---------------------------
   Responsive móvil
---------------------------- */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none; /* por defecto oculto */
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    background-color: #fff;
    padding: 1rem 2rem;
  }

  .navbar-collapse.show {
    display: flex !important; /* se muestra al abrir */
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .navbar-nav .nav-link {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Padding extra en body para mobile */
  body {
    padding-top: 180px;
  }
}

/* ---------------------------
   Desktop
---------------------------- */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
  }
}



/* CSS para darle un look más editorial */
.hero-title {
  letter-spacing: 2px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}
/* ====== Bloque de Video Optimizado ====== */

/* Contenedor principal */
.section-video {
  position: relative;
  width: 100%;
  height: auto; /* ajusta altura automáticamente según el video */
  overflow: hidden;
}

/* Video propiamente dicho */
.section-video video {
  width: 100%;        /* ancho completo */
  height: auto;       /* altura proporcional */
  object-fit: cover;  /* cubre el contenedor */
  display: block;
  position: relative; /* ya no absoluto */
  z-index: 1;
}

/* Overlay semitransparente */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Contenido de texto */
.video-content {
  position: absolute;
  top: 20%; /* no verticalmente centrado, más natural */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

/* Tipografía */
.video-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.video-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.5;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .video-content {
    top: 15%; /* un poco más arriba en móviles */
  }
  
  .video-content h1 {
    font-size: 2rem;
  }

  .video-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .video-content {
    top: 10%;
    padding: 0 10px;
  }

  .video-content h1 {
    font-size: 1.6rem;
  }

  .video-content p {
    font-size: 0.95rem;
  }
}




/* ====== Sección Categorías ====== */
#categorias {
  opacity: 1;
  transform: none;
}

/* Enlaces sin subrayado y texto negro */
#categorias a {
  text-decoration: none !important;
  color: #000000 !important;
}

/* Igualar todas las imágenes */
#categorias img {
  width: 100%;
  height: 360px; /* altura desktop */
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover */
#categorias a:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* Títulos debajo de las imágenes */
#categorias figcaption h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin-top: 0.5rem;
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
  #categorias img {
    height: 300px; /* tablet */
  }
}

@media (max-width: 575px) {
  #categorias img {
    height: 220px; /* móvil */
  }
}

/* ====== Footer DEVIN MAGAZINE Mejorado ====== */
.footer {
  background-color: #fdfdfd; /* fondo blanco cálido */
  padding: 2rem 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.95rem;
  color: #222222;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* izquierda-derecha */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem; /* espacio entre bloques */
  flex-wrap: wrap; /* responsive */
}

/* Texto izquierda */
.footer-left p {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Redes sociales derecha */
.footer-social ul.social-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  color: #222222;
  text-decoration: none;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #000000;
  color: #fff;
  transform: translateY(-2px);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-left,
  .footer-social {
    width: 100%;
    justify-content: center;
  }

  .footer-social ul.social-list {
    justify-content: center;
  }
}




/* ---------------------------
   GLOBAL / LAYOUT
---------------------------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  background-color: #fff;
}

article#noticias {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ---------------------------
   HEADER
---------------------------- */
article header {
  text-align: center;
  margin-bottom: 3rem;
}

article header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

article header h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.4;
  font-weight: 400;
  color: #444;
  max-width: 750px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
}

article .meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ---------------------------
   CONTENIDO DEL ARTÍCULO
---------------------------- */
.contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contenido p {
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  color: #222;
  text-align: justify;
  max-width: 750px;
}

.contenido strong {
  font-weight: 600;
}

/* ---------------------------
   GALERÍAS
---------------------------- */
.galeria,
.galeria-extra {
  width: 100%;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria figure,
.galeria-extra figure {
  text-align: center;
  margin-bottom: 2rem;
}

.galeria img,
.galeria-extra img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  text-align: center;
}

/* Galería en grid */
.galeria-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.galeria-extra h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 1rem;
  text-align: center;
}

/* ---------------------------
   RESPONSIVE GENERAL
---------------------------- */
@media (max-width: 768px) {
  main {
    padding: 1.5rem 1rem;
  }

  article header h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  article header h2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .contenido p {
    font-size: 1rem;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  article#noticias {
    padding: 0 2rem;
  }

  .contenido p {
    font-size: 1.1rem;
    max-width: 800px;
  }
}

/* ---------------------------
   ESPACIO ENTRE NAVBAR Y CONTENIDO
---------------------------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 2rem 1rem; /* Top padding mayor para separar del navbar */
  box-sizing: border-box;
  min-height: 100vh; /* Asegura que ocupe toda la altura visible si no hay mucho contenido */
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
  main {
    padding: 3rem 1rem 2rem 1rem; /* Reducir un poco en móviles */
  }
}

/* Ajuste para pantallas muy grandes */
@media (min-width: 1200px) {
  main {
    padding: 5rem 2rem 3rem 2rem; /* Más espacio en pantallas grandes */
  }
}

/* ---------------------------
   ESPACIO INTERNO DE ARTÍCULOS
---------------------------- */
article#noticias {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Mantener coherencia con header y contenido */
article header {
  margin-bottom: 3rem;
}

article .contenido {
  margin-top: 1rem; /* Separa ligeramente del header */
}




/* ESPACIO ENTRE EL CONTENIDO Y EL HEADER NAVBAR  */
/* header {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
} */



/* ================================
   ESPACIADO GENERAL / SEPARACIÓN DEL HEADER QUIENES SOMOS?
================================= */
#quienes-somos {
    padding: 6rem 1.5rem !important;  /* más aire respecto al header */
    background-color: #fff;
    color: #111;
    scroll-margin-top: 120px; /* mejora navegación al hacer scroll desde nav */
}

/* ================================
   CONTENEDOR PRINCIPAL
================================= */
#quienes-somos > div {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
    align-items: flex-start;
}

/* ================================
   COLUMNA TEXTO
================================= */
#quienes-somos header h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

#quienes-somos header div {
    width: 60px;
    height: 2px;
    background-color: #000;
    margin-bottom: 2rem;
}

.descripcion-revista p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

#quienes-somos article {
    text-align: left;
}

#quienes-somos article h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#quienes-somos article h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 1.5rem;
}

#quienes-somos article p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

#quienes-somos article p.firma {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #000;
    margin-top: 2rem;
}

/* ================================
   COLUMNA RETRATO
================================= */
.columna-retrato {
    flex: 1 1 380px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.columna-retrato figure {
    margin: 0;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
}

.columna-retrato img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(1.05) contrast(1);
}

.columna-retrato figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: #777;
    margin-top: 0.8rem;
}

/* ================================
   HR SEPARADOR
================================= */
#quienes-somos hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 3rem 0;
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 900px) {
    #quienes-somos {
        padding: 5rem 1.5rem !important;
    }

    #quienes-somos header h2 {
        font-size: 2rem;
    }

    #quienes-somos article h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    #quienes-somos {
        padding: 4rem 1.5rem !important;
    }

    #quienes-somos header h2 {
        font-size: 1.8rem;
    }

    .descripcion-revista p,
    #quienes-somos article p {
        font-size: 1.05rem;
    }
}

/* ===============================
   CONTENEDOR GENERAL MAIN
================================= */
.contenedor-articulo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Inter", sans-serif;
    color: #111;
    padding-top: 100px; /* espacio para navbar fijo */
}

/* ===============================
   HEADER DEL ARTÍCULO
================================= */
.articulo-header {
    margin-bottom: 3rem; /* separación coherente entre header y galería */
}

.articulo-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.articulo-header .subtitulo {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
}

/* ===============================
   GALERÍA
================================= */
.galeria picture {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.galeria picture img {
    width: 100%;
    max-width: 300px; /* tamaño reducido */
    height: auto;
    object-fit: cover;
    border-radius: 0; /* esquinas rectas */
    border: none;
    transition: opacity .3s ease;
}

.galeria picture img:hover {
    opacity: 0.85;
}

/* ===============================
   TEXTO DEL ARTÍCULO
================================= */
.contenido p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #222;
}

.contenido p strong {
    font-weight: 600;
}

/* FOOTER */
.articulo-footer p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-top: 2rem;
}

/* ===============================
   RESPONSIVE
================================= */

/* Tablets */
@media (max-width: 900px) {
    .galeria picture {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .galeria picture img {
        max-width: 260px;
    }

    .articulo-header h2 {
        font-size: 2.2rem;
    }
}

/* Móviles */
@media (max-width: 600px) {
    .galeria picture {
        flex-direction: column;
        align-items: center;
    }

    .galeria picture img {
        max-width: 90%;
    }

    .articulo-header h2 {
        font-size: 1.9rem;
    }

    .contenido p {
        font-size: 1.05rem;
    }
}

/* ===========================
   BLOQUE SALUD Y BELLEZA
=========================== */
.salud-belleza {
    padding: 3rem 1.5rem;
    background-color: #fff;
    color: #111;
    font-family: "Inter", sans-serif;
}

.contenedor-fotos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* responsive */
}

.foto-item {
    flex: 1 1 45%; /* dos fotos por fila en escritorio */
    max-width: 500px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.foto-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* sin esquinas redondeadas */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.foto-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* ===========================
   FIGCAPTION / TEXTO
=========================== */
.foto-item figcaption {
    margin-top: 0.8rem;
    text-align: center;
}

.foto-item figcaption h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111;
}

.foto-item figcaption p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .foto-item {
        flex: 1 1 48%;
    }
}

@media (max-width: 600px) {
    .contenedor-fotos {
        flex-direction: column;
        gap: 1.5rem;
    }

    .foto-item {
        flex: 1 1 100%;
    }
}
/* ===========================
   MAIN / SECCIÓN PRINCIPAL
=========================== */
main, .salud-belleza {
    padding-top: 120px; /* Altura del navbar + margen extra */
}

/* Para secciones posteriores */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
 /* CIERRE */

 /* ===========================
   BLOQUE ENTREVISTA Y TENDENCIAS
=========================== */
.entrevista {
    padding-top: 120px; /* espacio desde el header fixed-top */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
    background-color: #fff;
    color: #111;
    font-family: "Inter", sans-serif;
}

.contenedor-entrevista {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.entrevista-imagen {
    flex: 1 1 300px;
    max-width: 400px;
}

.entrevista-imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.entrevista-imagen img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.entrevista-texto {
    flex: 2 1 500px;
}

.entrevista-texto h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
}

.entrevista-texto h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 1.5rem;
}

.entrevista-texto p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #333;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .contenedor-entrevista {
        flex-direction: column;
        align-items: center;
    }

    .entrevista-imagen, .entrevista-texto {
        max-width: 100%;
        flex: 1 1 100%;
        text-align: center;
    }

    .entrevista-texto h2 {
        font-size: 1.8rem;
    }
}

/* ===== Espacio respetando el navbar ===== */
body {
  padding-top: 5px; /* ajusta si tu navbar es más alto o más bajo */
}

/* CIERRE */


/* BLOQUE CONTACTANOS */
#contacto {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
}

#contacto h2 {
  margin-bottom: 2rem;
  font-weight: 500;
}

#contacto p {
  margin: 0.5rem 0;
}

#contacto a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
