:root {
  --primary: #d8811e;
  --secondary: #222222;
  --accent: #ffd100;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --bg-light: #F4F4F4; /* Gray background for services */
  --bg-contact: #E5DFC8;
  --bg-footer: #1C242B;
  --font-heading: 'Montserrat', sans-serif;
  --font-text: 'Open Sans', sans-serif;
  --font-script: 'Questrial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  color: var(--secondary);
  line-height: 1.6;
  background-color: var(--white);
  font-weight: 300;
  padding-top: 150px; /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: var(--primary);
  padding: 25px 0;
  text-align: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  position: relative; /* for hamburger positioning if needed */
}

.logo img {
  height: 100px;
  object-fit: contain;
}

/* Hamburger Icon - Hidden on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 5rem;
}

.nav-links a {
  color: var(--white);
  font-size: 1.2rem; /* Larger menu text */
  font-family: var(--font-text);
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Hero Section Base */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  background-size: cover;
  background-position: center;
  height: 700px; /* Much taller hero to fit larger text */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); 
}

.hero-laminado {
  background-image: url('../img/banner-hero-1-raw.png');
}

.hero-vinilico {
  background-image: url('../img/banner-hero.jpg');
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero-content h1 {
  font-size: 5rem; /* Huge text for 4k */
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-content h1 .yellow {
  color: var(--accent);
}

.hero-content h2 {
  font-size: 2.5rem; /* Larger subtitle */
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.btn-outline {
  display: inline-block;
  padding: 15px 50px;
  background-color: transparent;
  color: var(--accent);
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #000;
}

.btn-solid {
  display: inline-block;
  padding: 15px 50px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-solid:hover {
  background-color: #c47617;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

/* About Section */
.about {
  padding: 7rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about h2 {
  color: var(--primary);
  font-size: 3rem; /* Much larger */
  margin-bottom: 2rem;
  font-weight: 400;
}

.about p {
  font-size: 1.4rem; /* Much larger */
  margin-bottom: 1.8rem;
  color: #444;
  line-height: 1.8;
}

/* Services / Gallery */
.services {
  padding: 7rem 2rem;
  background-color: var(--bg-light);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem; /* Larger */
  margin-bottom: 4rem;
  color: var(--primary);
  font-weight: 400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Wider gap */
  margin-bottom: 4rem;
}

.gallery-item {
  cursor: pointer;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 250px; /* Larger images */
  object-fit: cover;
  transition: opacity 0.3s ease;
  margin-bottom: 1rem;
}

.gallery-item:hover img {
  opacity: 0.8;
}

.gallery-info h3 {
  font-size: 1.4rem; /* Larger */
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
}

.gallery-info p {
  font-size: 1.1rem; /* Larger */
  color: #666;
  line-height: 1.5;
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain; /* Prevents scroll from leaking to background */
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh; /* Leave some space above and below */
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px; /* Optional subtle curve */
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto; /* Scroll internally */
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 3rem;
  color: #333;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.close-modal:hover {
  color: var(--primary);
}

.modal-title {
  color: var(--primary);
  font-size: 2rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.modal-gallery-inner {
  display: contents;
}

.modal-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #ececec;
}

.modal-gallery-item {
  position: relative;
  margin: 0;
}

.modal-gallery-item img {
  display: block;
}

.modal-gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* Contact Form */
.contact {
  padding: 5rem 2rem;
  background-color: var(--bg-contact);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.contact-container p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

.contact-container a {
  color: #444;
  text-decoration: underline;
}

form {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
}

form input, form textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #777;
  font-family: var(--font-text);
  font-size: 1.1rem;
  color: #333;
}

form input:focus, form textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

form textarea {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--bg-footer);
  color: #ddd;
  padding: 4rem 2rem 1.5rem 2rem;
  font-size: 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-left, .footer-right {
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-left p, .footer-right p {
  margin-bottom: 0.8rem;
}

.footer-left a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-left a:hover {
  color: var(--primary);
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 15px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #999;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.whatsapp-float svg {
  width: 40px;
  height: 40px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .hero-content h2 { font-size: 1.8rem; }
  .about h2 { font-size: 2.2rem; }
  .about p { font-size: 1.1rem; }
  .services h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    right: 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 70px;
  }

  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-right {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
