/* index.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&display=swap');

:root {
  --color-bg: #FFFFFF;
  --color-text-dark: #000000;
  --color-text-muted: #333333;
  --color-light-gray: #f5f5f5;
  --color-border: #e0e0e0;
  --font-main: 'Montserrat', sans-serif;
  --font-logo: 'Julius Sans One', sans-serif;
  --transition-speed: 0.4s;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--color-text-dark);
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

/* Typography Utility */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 2px; }
.text-muted { color: var(--color-text-muted); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-text-dark);
}

.btn-solid {
  background-color: var(--color-text-dark);
  color: var(--color-bg);
}

.btn-solid:hover {
  background-color: var(--color-bg);
  color: var(--color-text-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-dark);
}

.btn-ghost:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg);
}

/* Sticky Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background-color: var(--color-text-dark);
  transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-bg);
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 1001;
}

.logo-text {
  display: block;
  font-family: var(--font-logo);
  font-weight: 400;
}

.logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-links li a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-bg);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a.active {
  font-weight: 700;
}

.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-bg);
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--color-bg);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Float WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: var(--color-text-dark);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 1.8rem;
  z-index: 999;
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: var(--color-text-muted);
  color: var(--color-bg);
}

/* Corporate Footer */
.corporate-footer {
  background-color: var(--color-text-dark);
  color: var(--color-bg);
  padding: 5rem 0 2rem;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--color-bg);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-bg);
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-desc {
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #a0a0a0;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-bg);
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-contact-info i {
  color: var(--color-bg);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-bottom .social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.footer-bottom .social-links a {
  color: var(--color-bg);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .corporate-footer {
    text-align: center;
  }
  
  .footer-contact-info {
    display: inline-block;
    text-align: left;
  }
  
  .footer-contact-info li {
    justify-content: flex-start;
  }
}

/* Hero Component (used in index.html) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/images/heros/hero_index.JPG');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.7); /* ensure text is highly legible */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-text-dark);
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--color-text-dark);
  font-weight: 400;
  max-width: 800px;
  margin-inline: auto;
}

/* Teaser Component (Index) */
.teaser-section {
  background-color: var(--color-bg);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.teaser-text {
  text-align: left;
}

.teaser-text p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}

.teaser-video video {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-text-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-slogan {
    font-size: 1.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .teaser-text {
    text-align: center;
  }
  
  .teaser-text .section-title {
    text-align: center !important;
  }
}

/* --- Added Components --- */
/* Page Header */
.page-header {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 6rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  color: var(--color-bg);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--color-bg);
}

.page-header p.text-muted {
  color: #dddddd;
}

/* Page Header Specific Backgrounds */
.header-nosotros::before { background-image: url('assets/images/heros/hero_nosotros.JPG'); }
.header-servicios::before { background-image: url('assets/images/heros/hero_servicios.JPG'); }
.header-proyectos::before { background-image: url('assets/images/heros/hero_proyectos.jpg'); }
.header-contacto::before { background-image: url('assets/images/heros/hero_contacto.JPG'); }


/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-header {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-dark);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.accordion-content p {
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}

/* Specialty Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.specialty-card {
  position: relative;
  background-color: #fafafa;
  border: 1px solid var(--color-border);
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: background-color 0.4s;
  cursor: default;
  scroll-margin-top: 120px;
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--color-text-dark);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.specialty-card:hover::before {
  transform: translateY(0);
}
.specialty-content {
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}
.specialty-card:hover .specialty-content p,
.specialty-card:hover .specialty-content i,
.specialty-card:hover .specialty-content div,
.specialty-card:hover .specialty-content h3 {
  color: var(--color-bg) !important;
}

/* Project Cards */
.project-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.project-img-placeholder {
  width: 100%;
  height: 250px;
  background-color: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c0c0;
  font-size: 2rem;
}
.project-info {
  padding: 1.5rem;
  text-align: left;
}
.project-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.project-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Modal Slider */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-close-slider {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 3001;
  transition: transform 0.3s;
}
.modal-close-slider:hover {
  transform: scale(1.1);
}
.slider-container {
  width: 90%;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.slider-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slider-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover {
  background: rgba(255,255,255,0.5);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Masonry Gallery */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem 0;
}
@media (max-width: 900px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-grid { column-count: 1; }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.masonry-placeholder {
  width: 100%;
  background-color: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.5s ease;
}
.masonry-item:hover .masonry-placeholder {
  transform: scale(1.03);
  background-color: var(--color-border);
}
.item-tall { height: 450px; }
.item-short { height: 250px; }
.item-medium { height: 350px; }

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 2.5rem;
  color: var(--color-text-dark);
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.3s;
}
.lightbox-close:hover {
  transform: scale(1.1);
}
.lightbox-placeholder-preview {
  width: 80%;
  height: 80vh;
  background-color: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.form-group {
  margin-bottom: 2rem;
}
.form-control {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text-dark);
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-text-dark);
}
.form-control::placeholder {
  color: #a0a0a0;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-info p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-info i {
  color: var(--color-text-dark);
  font-size: 1.2rem;
}

/* Testimonials Component */
.testimonials-section {
  background-color: var(--color-light-gray);
  padding: 6rem 0;
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  list-style: none;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: var(--color-bg);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stars {
  color: #f5c518;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dark);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text-dark);
  color: var(--color-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.carousel-button:hover {
  background: var(--color-text-muted);
}

.carousel-button-left {
  left: 0;
}

.carousel-button-right {
  right: 0;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel-indicator {
  border: none;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: #d0d0d0;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicator.current-indicator {
  background: var(--color-text-dark);
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 2.5rem 1.5rem;
  }
  .carousel-button {
    width: 35px;
    height: 35px;
  }
}
