/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --brand-orange: #ee7b1c;
    --brand-orange-strong: #ff5500;
    --brand-red: #ea1a22;
    --font-heading: 'Arial Black', Impact, sans-serif;
    --font-body: 'Arial', sans-serif;
    --transition-smooth: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); }

/* (Navbar y botones son los mismos que en los archivos anteriores, omites la repetición para mantenerlo limpio pero asume que están aquí) */

/* =========================================
   HERO SECTION
   ========================================= */
.gallery-hero { padding: 8.75rem 0 0 0; background-color: var(--bg-dark); }
.gallery-hero-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-text-content { padding: 3.75rem 5vw; }
.section-subtitle-small { font-family: var(--font-heading); font-size: 0.85rem; color: var(--brand-red); letter-spacing: 0.125rem; text-transform: uppercase; display: block; margin-bottom: 1.25rem; }
.hero-text-content h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-text-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.5rem; max-width: 37.5rem; }
.breadcrumbs { margin-top: 2rem; font-size: 0.85rem; font-weight: bold; letter-spacing: 0.0625rem; text-transform: uppercase; }
.breadcrumbs a { color: var(--brand-orange); text-decoration: none; transition: color var(--transition-smooth); }
.breadcrumbs a:hover { color: var(--brand-orange-strong); }
.breadcrumbs .divider, .breadcrumbs .current { color: var(--text-muted); margin-left: 0.5rem; }
.hero-image-content { height: 100%; min-height: 31.25rem; }
.hero-image-content img { width: 100%; height: 100%; object-fit: cover; border-radius: 6.25rem 0 0 6.25rem; }

/* =========================================
   TICKER
   ========================================= */
.scrolling-ticker { background-color: var(--brand-red); padding: 0.9375rem 0; overflow: hidden; position: relative; display: flex; white-space: nowrap; border-top: 2px solid rgba(255, 255, 255, 0.2); border-bottom: 2px solid rgba(255, 255, 255, 0.2); }
.ticker-content { display: flex; animation: marquee 25s linear infinite; }
.ticker-content span { font-family: var(--font-heading); font-size: 1.2rem; color: #ffffff; text-transform: uppercase; letter-spacing: 0.125rem; margin-right: 3.125rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   GALLERY GRID
   ========================================= */
.gallery-section { padding: 5rem 5vw; background-color: #050505; }
.gallery-header { text-align: center; margin-bottom: 3.75rem; }

/* Título de fondo "PORTFOLIO" */
.brands-title-container { position: relative; display: inline-block; margin-bottom: 1rem; }
.brands-title { font-family: var(--font-heading); font-size: 2rem; color: var(--text-main); position: relative; z-index: 2; }
.brands-title::before { content: attr(data-text); position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%); font-size: 4rem; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05); z-index: -1; white-space: nowrap; }

/* Grid de 4 columnas */
.main-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 90rem; margin: 0 auto; }
.gallery-img { width: 100%; height: 18.75rem; object-fit: cover; border-radius: 0.5rem; border: 3px solid transparent; cursor: pointer; transition: transform var(--transition-smooth), border-color var(--transition-smooth); }
.gallery-img:hover { transform: scale(1.02); border-color: var(--brand-red); z-index: 2; position: relative; }

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.modal { display: none; position: fixed; z-index: 2000; padding-top: 3rem; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px); }
.modal-content-wrapper { display: flex; align-items: center; justify-content: center; height: 85%; width: 100%; position: relative; }
.modal-img { max-height: 100%; max-width: 80%; object-fit: contain; box-shadow: 0 0 2rem rgba(0,0,0,0.8); border: 2px solid var(--brand-orange); }
.modal-caption { margin: auto; display: block; width: 80%; max-width: 43.75rem; text-align: center; color: #ccc; padding: 10px 0; height: 15%; font-family: var(--font-heading); letter-spacing: 1px; }
.modal-close { position: absolute; top: 1.5rem; right: 2.5rem; color: #f1f1f1; font-size: 3rem; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; }
.modal-close:hover, .modal-close:focus { color: var(--brand-orange); text-decoration: none; cursor: pointer; }
.modal-prev, .modal-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 1rem; margin-top: -3.125rem; color: white; font-weight: bold; font-size: 2.5rem; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; background: rgba(0,0,0,0.5); border: none; z-index: 2001; }
.modal-prev { left: 2%; border-radius: 3px 0 0 3px; }
.modal-next { right: 2%; border-radius: 0 3px 3px 0; }
.modal-prev:hover, .modal-next:hover { background-color: var(--brand-orange); }

/* =========================================
   NAVBAR Y MENÚ DESPLEGABLE
   ========================================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.9375rem 3.125rem; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: fixed; top: 0; width: 100%; z-index: 1000; transition: transform 0.3s ease-in-out; }
.navbar-hidden { transform: translateY(-100%); }
.logo img { height: 60px; margin: .5rem;}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.header-right { display: flex; flex-direction: row; align-items: center; gap: 0.9375rem; }
.nav-links { display: flex; align-items: center; }
.nav-links > a, .dropbtn { color: var(--text-main); text-decoration: none; margin-left: 1.5625rem; font-family: inherit; font-size: 1rem; text-transform: uppercase; transition: color var(--transition-smooth); cursor: pointer; }
.nav-links > a:hover, .dropdown:hover .dropbtn { color: var(--brand-orange-strong); }
.dropdown { position: relative; display: inline-block; padding-bottom: 0.625rem; top: 0.3125rem;}
.arrow { font-size: 0.7rem; margin-left: 0.1875rem; transition: transform var(--transition-smooth); }
.dropdown:hover .arrow { transform: rotate(180deg); display: inline-block; }
.dropdown-content { opacity: 0; visibility: hidden; transform: translateY(0.9375rem); position: absolute; top: 100%; left: 0; background-color: #111111; min-width: 20rem; box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.8); border-top: 3px solid var(--brand-red); transition: all var(--transition-smooth); z-index: 1; }
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a { color: var(--text-main); padding: 0.9375rem 1.25rem; text-decoration: none; display: block; font-size: 0.85rem; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all var(--transition-smooth); margin-left: 0; }
.dropdown-content a:hover { background-color: rgba(234, 26, 34, 0.1); color: var(--brand-red); padding-left: 1.5625rem; }
.btn-phone { background-color: var(--brand-red); color: #ffffff; padding: 0.875rem 1.75rem; border-radius: 1.875rem; text-decoration: none; font-size: 1.1rem; font-weight: bold; transition: transform var(--transition-smooth); }
.btn-phone:hover { transform: translateX(-0.1875rem); background-color: var(--brand-orange);}

/* =========================================
   FOOTER
   ========================================= */
.footer { background-color: #050505; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 3.75rem; }
.footer-container { max-width: 81.25rem; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3.125rem; padding: 0 5vw 3.125rem 5vw; }
.footer-logo { height: 3.75rem; margin-bottom: 1.25rem; }
.brand-col p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.footer-col h3 { font-family: var(--font-heading); color: white; margin-bottom: 1.5625rem; font-size: 1.1rem; letter-spacing: 0.0625rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.9375rem; display: flex; align-items: center; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--brand-orange); }
.asterisks { color: var(--brand-red); margin-right: 0.9375rem; letter-spacing: 0.125rem;}
.contact-list li { color: var(--text-muted); font-size: 0.95rem; }
.social-icons { display: flex; gap: 0.9375rem; margin-top: 1.25rem; }
.social-icons a { width: 2.1875rem; height: 2.1875rem; background-color: var(--brand-red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; transition: transform 0.3s, background 0.3s; }
.social-icons a:hover { transform: scale(1.1); background-color: var(--brand-orange); }
.footer-bottom { background-color: #000; text-align: center; padding: 1.25rem; color: #777; font-size: 0.85rem; }

/* =========================================
   RESPONSIVE FINAL
   GALLERY PAGE
   ========================================= */

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  overflow: hidden;
}

/* Naranja principal / rojo acento */
.scrolling-ticker {
  background-color: var(--brand-orange) !important;
}

.section-subtitle-small,
.breadcrumbs a,
.brands-title {
  color: var(--brand-orange) !important;
}

.gallery-img:hover {
  border-color: var(--brand-orange) !important;
}

.btn-phone {
  background-color: var(--brand-orange) !important;
}

.btn-phone:hover,
.modal-prev:hover,
.modal-next:hover,
.modal-close:hover {
  background-color: var(--brand-red) !important;
  color: #fff !important;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {
  .navbar {
    padding: 14px 28px;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10002;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .header-right {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 10001;
    padding: 90px 24px 40px;
  }

  .header-right.active {
    transform: translateX(0);
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-links > a,
  .nav-links .dropbtn,
  .dropdown {
    margin-left: 0 !important;
    font-size: 1.15rem;
    text-align: center;
  }

  .dropdown {
    width: 100%;
    padding-bottom: 0;
    top: 0;
  }

  .dropdown-content {
    position: static;
    min-width: 100%;
    width: 100%;
    margin-top: 14px;
    background: transparent;
    border-top: 1px solid rgba(238, 123, 28, 0.35);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
  }

  .gallery-hero-container {
    grid-template-columns: 1fr;
  }

  .gallery-hero {
    padding-top: 110px;
  }

  .hero-text-content {
    text-align: center;
    padding: 50px 5vw;
  }

  .hero-text-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .breadcrumbs {
    text-align: center;
  }

  .hero-image-content {
    min-height: 420px;
  }

  .hero-image-content img {
    border-radius: 40px 40px 0 0;
  }

  .main-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .navbar {
    padding: 12px 18px;
  }

  .logo img {
    height: 52px;
    margin: 0;
  }

  .gallery-hero {
    padding-top: 95px;
  }

  .hero-text-content {
    padding: 40px 22px;
  }

  .hero-text-content h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-text-content p {
    font-size: 1rem;
  }

  .hero-image-content {
    min-height: 330px;
  }

  .ticker-content span {
    font-size: 0.95rem;
    margin-right: 34px;
  }

  .gallery-section {
    padding: 60px 22px;
  }

  .gallery-header {
    margin-bottom: 40px;
  }

  .brands-title {
    font-size: 1.45rem;
  }

  .brands-title::before {
    display: none;
  }

  .main-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gallery-img {
    height: 210px;
    border-radius: 12px;
  }

  .modal {
    padding-top: 70px;
  }

  .modal-content-wrapper {
    height: 75%;
  }

  .modal-img {
    max-width: 90%;
    max-height: 85%;
  }

  .modal-caption {
    width: 90%;
    height: auto;
    font-size: 0.9rem;
    padding-top: 16px;
  }

  .modal-close {
    top: 18px;
    right: 22px;
    font-size: 2.5rem;
  }

  .modal-prev,
  .modal-next {
    font-size: 1.8rem;
    padding: 0.8rem;
    top: auto;
    bottom: 55px;
  }

  .modal-prev {
    left: 28%;
  }

  .modal-next {
    right: 28%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul li,
  .contact-list li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {
  .hero-text-content h1 {
    font-size: 2.2rem;
  }

  .hero-image-content {
    min-height: 280px;
  }

  .main-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    height: 240px;
  }

  .btn-phone {
    width: 100%;
    text-align: center;
  }

  .modal-img {
    max-width: 92%;
  }

  .modal-prev {
    left: 22%;
  }

  .modal-next {
    right: 22%;
  }
}