/* =========================================================
   RESET Y CONFIGURACIÓN GENERAL
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #111;
  background-color: #fff;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

/* =========================================================
   HEADER / NAVEGACIÓN
========================================================= */

.header {
  height: 80px;
  display: flex;
  align-items: center;
  background: #fff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a.active {
  color: #000;
  font-weight: 600;
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 450px;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  color: #fff;
  text-align: center;

  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* =========================================================
   TÍTULOS DE SECCIÓN
========================================================= */

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 600;
}

/* =========================================================
   PROYECTOS - GRID / MASONRY
========================================================= */

.projects-section {
  padding: 40px 0 80px;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 40px 0 20px;
  color: #111;
}

.projects-grid {
  display: block;
  column-count: 2;
  column-gap: 20px;
  width: 100%;
}

.project-card {
  position: relative;

  display: block;
  width: 100%;
  height: auto !important;

  margin-bottom: 20px;

  break-inside: avoid;
  overflow: hidden;

  border-radius: 8px;

  background-color: transparent;
}

.project-card img {
  width: 100%;
  height: auto !important;

  display: block;

  object-fit: contain;

  transition: transform 0.4s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.card-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  text-align: center;
  font-weight: 500;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

/* =========================================================
   SEMBLANZA
========================================================= */

.semblanza-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.semblanza-text {
  flex: 1;
}

.semblanza-text h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.semblanza-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 35px;
}

.btn-learn-more {
  display: inline-block;

  padding: 12px 28px;

  border: 1px solid #111;

  color: #111;
  text-decoration: none;

  font-size: 0.9rem;

  transition: all 0.3s ease;
}

.btn-learn-more:hover {
  background-color: #111;
  color: #fff;
}

.semblanza-img {
  flex: 1;
}

.semblanza-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 40px 0;
  text-align: center;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  color: #111;
  font-size: 1.2rem;
  margin: 0 10px;
  text-decoration: none;
}

.copyright {
  font-size: 0.85rem;
  color: #555;
}

/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-float {
  position: fixed;

  bottom: 25px;
  right: 25px;

  width: 60px;
  height: 60px;

  background-color: #12d06e;
  color: #fff;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

  z-index: 1000;

  text-decoration: none;
}

.whatsapp-badge {
  position: absolute;

  top: 0;
  right: 0;

  background-color: #ff2b56;
  color: #fff;

  font-size: 11px;
  font-weight: bold;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   PÁGINA ABOUT
========================================================= */

.about-hero {
  position: relative;

  height: 70vh;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 120%;

  object-fit: cover;
  object-position: center;

  z-index: 1;

  transform: translateY(-8%);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.25);

  z-index: 2;
}

.about-hero-content {
  position: relative;
  z-index: 3;

  color: #fff;
  text-align: center;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.trayectoria-grid {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 60px;

  padding: 60px 0;
}

.trayectoria-text {
  flex: 1;
}

.trayectoria-text h2 {
  font-size: 1.8rem;
  font-weight: 600;

  margin-bottom: 35px;

  color: #111;
}

.trayectoria-text p {
  font-size: 1.05rem;
  line-height: 1.8;

  color: #222;
}

.trayectoria-img {
  flex: 1;
}

.trayectoria-img img {
  width: 100%;
  max-width: 420px;

  display: block;

  margin: 0 auto;
}

.bio-section {
  padding-bottom: 80px;
}

.bio-container {
  max-width: 1100px;
}

.bio-container p {
  font-size: 1.05rem;
  line-height: 1.85;

  color: #222;

  margin-bottom: 25px;
}

/* =========================================================
   PÁGINA CONTACT
========================================================= */

.contact-section {
  padding: 60px 0 100px;
  background-color: #fff;
}

.contact-main-title {
  text-align: center;

  font-size: 2.8rem;
  font-weight: 700;

  color: #111;

  margin-bottom: 70px;

  letter-spacing: -0.5px;
}

.contact-card {
  display: flex;

  width: 100%;
  min-height: 380px;

  background-color: #fbf5ee;

  overflow: hidden;
}

.contact-info {
  flex: 1;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  padding: 40px;

  text-align: center;
}

.contact-info h2 {
  font-size: 1.15rem;
  font-weight: 400;

  color: #222;

  margin-bottom: 20px;
}

.contact-item {
  font-size: 1.05rem;

  color: #222;

  margin-bottom: 8px;

  line-height: 1.6;
}

.contact-item strong {
  font-weight: 500;
}

.contact-media {
  flex: 1;

  position: relative;
}

.contact-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* =========================================================
   CARRUSEL GENERAL (.slide)
   Para las páginas que utilizan .slide
========================================================= */

.carousel-container {
  position: relative;

  width: 100%;
  max-width: 900px;

  height: 500px;

  overflow: hidden;

  margin: auto;
}

.carousel-slides {
  position: relative;

  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;

  display: none;

  width: 100%;
  height: 100%;

  object-fit: cover;

  cursor: pointer;

  transition: opacity 0.3s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

.prev-btn,
.next-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 45px;
  height: 45px;

  background: rgba(255, 255, 255, 0.7);

  color: #111;

  border: none;

  font-size: 1.2rem;

  cursor: pointer;

  z-index: 10;

  opacity: 0.7;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.carousel-container:hover .prev-btn,
.carousel-container:hover .next-btn {
  opacity: 1;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.95);

  transform: translateY(-50%) scale(1.08);
}

/* =========================================================
   LIGHTBOX GENERAL
========================================================= */

.lightbox {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;

  object-fit: contain;
}

.lightbox-close {
  position: absolute;

  top: 20px;
  right: 35px;

  color: #fff;

  font-size: 45px;

  cursor: pointer;
}

/* =========================================================
   PÁGINAS DE DETALLE DE PROYECTO
========================================================= */

.intra-page-container {
  max-width: 900px;

  margin: 0 auto;

  padding: 60px 20px 80px;
}

.intra-header h1 {
  font-size: 2.3rem;

  font-weight: 700;

  color: #111;

  line-height: 1.3;

  margin-bottom: 40px;

  text-align: left;
}

.intra-article p {
  font-size: 1.05rem;

  line-height: 1.85;

  color: #222;

  margin-bottom: 24px;

  text-align: justify;
}

/* =========================================================
   ENLACE ALL PROJECTS
========================================================= */

.all-projects-wrapper {
  margin-top: 50px;
  margin-bottom: 25px;
}

.all-projects-link {
  font-size: 0.95rem;

  color: #333;

  text-decoration: none;

  font-weight: 500;

  transition: color 0.2s ease;
}

.all-projects-link:hover {
  color: #666;
}

/* =========================================================
   CARRUSEL DE PROYECTOS
   UNA FOTOGRAFÍA A LA VEZ
========================================================= */

.strip-gallery-wrapper {
  position: relative;

  width: 100vw;

  margin-left: calc(50% - 50vw);

  margin-right: calc(50% - 50vw);

  margin-top: 10px;
  margin-bottom: 60px;

  overflow: hidden;
}

/* Ventana que contiene las fotografías */
.strip-gallery-track {
  display: flex;

  width: 100%;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  padding: 0;

  gap: 0;
}

.strip-gallery-track::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   CADA FOTOGRAFÍA
========================================================= */

.strip-item {
  flex: 0 0 100%;

  width: 100%;
  min-width: 100%;

  height: 600px;

  overflow: hidden;
}

.strip-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  cursor: pointer;

  transition: transform 0.3s ease;
}

.strip-item img:hover {
  transform: scale(1.01);
}

/* =========================================================
   BOTONES DEL CARRUSEL
========================================================= */

.strip-nav-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  background: rgba(255, 255, 255, 0.95);

  border: none;

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 1.3rem;

  color: #111;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;

  z-index: 20;
}

.strip-nav-prev {
  left: 20px;
}

.strip-nav-next {
  right: 20px;
}

.strip-nav-btn:hover {
  background: #fff;

  transform: translateY(-50%) scale(1.1);
}

/* =========================================================
   MODAL DE IMAGEN AMPLIADA
========================================================= */

.image-modal {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;

  z-index: 99999;

  padding: 30px;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 6px;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;

  top: 20px;
  right: 30px;

  color: #fff;

  font-size: 45px;

  font-weight: bold;

  cursor: pointer;

  z-index: 100000;

  user-select: none;

  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ccc;
}

/* =========================================================
   RESPONSIVE - TABLETS
========================================================= */

@media (max-width: 992px) {
  .projects-grid {
    column-count: 2;
    column-gap: 15px;
  }

  .strip-item {
    height: 500px;
  }
}

/* =========================================================
   RESPONSIVE - MÓVILES
========================================================= */

@media (max-width: 768px) {
  /* Header */

  .header {
    height: 70px;
  }

  .nav-list {
    gap: 15px;
  }

  .nav-list a {
    font-size: 0.85rem;
  }

  /* Hero */

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* About */

  .about-hero-content h1 {
    font-size: 2.5rem;
  }

  .trayectoria-grid {
    flex-direction: column;

    gap: 30px;

    padding: 40px 0;
  }

  /* Contact */

  .contact-card {
    flex-direction: column;
  }

  .contact-media {
    height: 250px;
  }

  .contact-main-title {
    font-size: 2.2rem;

    margin-bottom: 40px;
  }

  /* Detalle */

  .intra-page-container {
    padding: 40px 20px 60px;
  }

  .intra-header h1 {
    font-size: 1.75rem;
  }

  /* Carrusel */

  .strip-item {
    height: 400px;
  }

  .strip-nav-btn {
    width: 42px;
    height: 42px;

    font-size: 1rem;
  }

  .strip-nav-prev {
    left: 10px;
  }

  .strip-nav-next {
    right: 10px;
  }

  /* Modal */

  .modal-content {
    max-width: 94vw;
    max-height: 85vh;
  }

  .modal-close {
    top: 15px;
    right: 20px;

    font-size: 38px;
  }
}

/* =========================================================
   RESPONSIVE - CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 576px) {
  .projects-grid {
    column-count: 1;
  }

  .nav-container {
    width: 92%;
  }

  .nav-list {
    gap: 10px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero-section {
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .strip-item {
    height: 300px;
  }

  .strip-nav-btn {
    width: 38px;
    height: 38px;
  }
}
