/* header de todas las páginas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;;
    font-size: 20px;
    
}

body {
    background-color: #000000;
    color: white;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    padding-top: 160px; /* ¡IMPORTANTE para que no se superponga el contenido! */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    z-index: 1000;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-shadow: none;
    border-radius: 0;
}

.header-inner {
    width: 1200px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid white;
}

/* Asegura que el contenido no quede oculto debajo del header */
body {
    padding-top: 160px;
}

.header .logo {
    cursor: pointer;
    flex-shrink: 0; /* Evita que el logo se reduzca */
}

.logo {
    flex-shrink: 0;
}

.logo-cadmiel {
    width: 140px;
    transition: all 0.3s;
}

.logo-cadmiel:hover {
    transform: scale(1.2);
}

.header nav {
    margin-left: auto; /* ¡Mueve el menú completamente a la derecha! */
}


.header .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header .nav-links li{
    display: inline-block;
    padding: 0 20px;
}

.header .nav-links li:hover {
    transform: scale(1.1);
    background: #414040;
    border-radius: 5px;
    transition: all 0.3s linear;
}

.header .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}    

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlider 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-text h1 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* hasta aquí header de todas las páginas */


/* redes sociales de todas las páginas */
.social-icons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999; /* 👈 Muy importante */
}

.social-icons a {
    text-decoration: none; /* Evita el subrayado */
    display: inline-block; /* Mantiene el tamaño */
    font-size: 30px;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.5);
}

.social-icons img {
    width: 30px;
    height: 30px;
}
/* redes sociales de todas las páginas */





/* página index */
.section-bg {
    background: url('./Imagenes/IMG_7143-2.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 30px 0; /* Agrega espacio alrededor del contenido */
}

.content-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    border: 2px solid white;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

.header, .main {
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    padding: 20px;
    border-radius: 15px;
}




.imagen-banner {
    position: relative;
    max-width: 1200px;
    margin: 60px auto; /* agrega separación entre imágenes */
    overflow: hidden;
}

.imagen-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.texto-banner {
    position: absolute;
    top: 45%; /* antes era top: 30px → ahora queda más centrado verticalmente */
    left: 40px;
    transform: translateY(-50%);
    color: white;
    font-size: 22px;
    font-weight: bold;
    background-color: none;
    padding: 8px 16px;
    border-radius: 4px;
}


/* hasta aquí página index */



/* página about */
.about-container {
    position: relative; /* Necesario para posicionar el título encima */
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    background-color: #000;
}

.about-photo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.photo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 384px;
    color: white;
    text-align: center;
    gap: 20px;
}

.photo-section {
    width: 384px;
    height: 520px; /* Más altura para efecto de columna alargada */
    background-image: url('Imagenes/IMG_6777-2.jpg'); /* imagen con texto */
    background-size: 1152px auto;
    background-repeat: no-repeat;
    background-position-y: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.section1 .photo-section { background-position-x: 0; }
.section2 .photo-section { background-position-x: -384px; }
.section3 .photo-section { background-position-x: -768px; }

.photo-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 340px;
    padding: 0 10px;
    text-align: justify;
}

.top { order: -1; }
.bottom { order: 1; }

/* Título flotante al estilo "move." */
.hero-title {
    font-size: 50px;
    font-weight: bold;
    color: white;
    mix-blend-mode: difference;
    letter-spacing: -2px;
    pointer-events: none;
}

.about-overlay-text {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
    url('Imagenes/IMG_6769-2.jpg') center/cover no-repeat; /* imagen oscurecida */
    color: white;
    padding: 100px 30px;
    text-align: center;
}

.overlay-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-overlay-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-overlay-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #dddddd;
}



/* hasta aquí página about */



/* página portfolio */
.portfolio-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.portfolio-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.portfolio-subtitle {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #cccccc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-grid img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-grid img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 10px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 99999;
  }
  
  .lightbox-arrow.left {
    left: 30px;
  }
  
  .lightbox-arrow.right {
    right: 30px;
  }
  
  .close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 99999;
  }



/* Texto en medio del grid */
.grid-text-block {
    background-color: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 1;
}

.grid-text-block h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.grid-text-block p {
    font-size: 16px;
    font-weight: 300;
    color: #ccc;
    margin-top: 10px;
}

/* Al hacer clic (lightbox + borde luminoso) */
.portfolio-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.3);
}


/* hasta aquí página portfolio */



/* página stories */

/* CENTRADO DE TÍTULOS */
.gallery-container2 {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
  }

.retrato-description4,
.retrato-description5,
.retrato-description6 {
  text-align: center;
  margin-bottom: 40px;
}

.retrato-description4 h2,
.retrato-description5 h2,
.retrato-description6 h2 {
  font-size: 36px;
  font-weight: bold;
}

.gallery-description4,
.gallery-description5,
.gallery-description6 {
  font-size: 18px;
  color: #aaa;
  margin-top: -10px;
}

  .masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
    grid-auto-flow: dense;
  }

  .masonry-gallery + .retrato-description4 {
    margin-top: 80px;
  }


  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.03);
  }

  /* Variación de tamaños estilo Pinterest */
  .gallery-item.tall {
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background-color: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .lightbox-arrow.left {
    left: 30px;
  }
  
  .lightbox-arrow.right {
    right: 30px;
  }


  /* Lightbox */
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
  }

  .lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
  }

  .close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-family: sans-serif;
  }

  @media (max-width: 768px) {
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.big {
      grid-column: span 1 !important;
      grid-row: span 1 !important;
    }
  }
  
/* hasta aquí página stories */



/* footer de todas la páginas */
.footer {
    background-color: #000;
    color: white;
    padding: 60px 20px;
    text-align: center;
    font-size: 16px;
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
}

.footer-column h2 {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-column h4 {
    font-size: 16px;
    color: #ccc;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-icons a {
    font-size: 24px;
    color: white;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #999;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #999;
}

.footer-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-button:hover {
    background-color: #ccc;
}

/* Líneas verticales entre columnas */
.with-border {
    border-left: 1px solid #444;
}

.footer-column:first-child {
    border-left: none; /* No borde en la primera */
}
/* hasta aquí footer de todas la páginas */