/* ===== VITRO ABERTURAS - CSS PRINCIPAL ===== */

:root {
  --color-principal-fondo: #101820;
  --color-principal-texto: #fff;
  --color-clarito-texto: #94A3B8;
  --color-fondo-divs: #1E293B;
  --color-naranja: #FF5000;
  --color-naranja-hover: #e64500;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body.light-mode {
  --color-principal-fondo: #fff;
  --color-principal-texto: #101820;
  --color-clarito-texto: #475569;
  --color-fondo-divs: #F8FAFC;
  --color-naranja: #FF5000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-principal-fondo);
  color: var(--color-principal-texto);
  transition: background-color 0.3s, color 0.3s;
  padding-bottom: 70px;
}

/* ===== HEADER ===== */
.header {
  background: var(--color-principal-fondo);
  border-bottom: 1px solid rgba(255,80,0,0.15);
  padding: 0.8rem 0;
  z-index: 997;
  transition: background 0.3s;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-principal-texto);
  letter-spacing: 0.05em;
}
.logo-accent { color: var(--color-naranja); }
.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-clarito-texto);
  margin-left: 0.4rem;
  align-self: flex-end;
  padding-bottom: 2px;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0; padding: 0;
}
.navbar .nav-link {
  color: var(--color-clarito-texto);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--color-naranja); }

.navbar .getstarted {
  background: var(--color-naranja);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.navbar .getstarted:hover { background: var(--color-naranja-hover); }

#toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-clarito-texto);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
#toggle:hover { border-color: var(--color-naranja); color: var(--color-naranja); }

/* MOBILE HEADER */
.mobile-header {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 997;
  background: var(--color-fondo-divs);
  border-top: 1px solid rgba(255,80,0,0.2);
}
.tab-nav-container {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}
.tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-clarito-texto);
  font-size: 0.7rem;
  gap: 0.2rem;
  padding: 0.3rem 1rem;
  transition: color 0.2s;
}
.tab a i { font-size: 1.3rem; }
.tab.active a, .tab a:hover { color: var(--color-naranja); }

/* ===== HERO ===== */
.hero { min-height: 100vh; position: relative; overflow: hidden; padding-top: 70px; }
.hero-slider { position: relative; width: 100%; height: 100vh; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-slide p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-get-started {
  background: var(--color-naranja);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-get-started:hover { background: var(--color-naranja-hover); color: #fff; transform: translateY(-2px); }

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,80,0,0.7);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }
.hero-prev:hover, .hero-next:hover { background: var(--color-naranja); }

.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dot.active { background: var(--color-naranja); }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  padding-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-principal-texto);
}
.section-header p {
  color: var(--color-clarito-texto);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== SERVICIOS HOME ===== */
.servicio-home {
  padding: 5rem 0;
  background: var(--color-principal-fondo);
}

.servicio {
  background: var(--color-fondo-divs);
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,80,0,0.08);
}
.servicio:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: rgba(255,80,0,0.25);
}

.iconito {
  margin-bottom: 1rem;
}
.iconito svg { width: 32px; height: 32px; }

.servicio h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-principal-texto);
  margin-bottom: 0.5rem;
}
.servicio p {
  font-size: 0.85rem;
  color: var(--color-clarito-texto);
  line-height: 1.6;
}

.content .who-we-are {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-naranja);
  margin-bottom: 0.5rem;
}

.content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-principal-texto);
}
.content h2 span { color: var(--color-naranja); }

.content .fst-italic {
  color: var(--color-clarito-texto);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.content ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-clarito-texto);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.content ul li i { color: var(--color-naranja); }

.btn-learn-more {
  background: transparent;
  border: 2px solid var(--color-naranja);
  color: var(--color-naranja);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-learn-more:hover { background: var(--color-naranja); color: #fff; }

/* Mobile servicios */
.servicios-mobile-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.servicios-mobile-scroll::-webkit-scrollbar { display: none; }
.servicio-item { min-width: 220px; }

/* ===== PROYECTOS HOME ===== */
.proyectos-home {
  padding: 5rem 0;
  background: var(--color-fondo-divs);
}

.proyecto-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}
.proyecto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.proyecto-card:hover img { transform: scale(1.06); }

.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,24,32,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.proyecto-card:hover .proyecto-overlay { opacity: 1; }

.proyecto-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.proyecto-overlay p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.btn-ver-mas {
  background: var(--color-naranja);
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-ver-mas:hover { background: var(--color-naranja-hover); color: #fff; }

/* ===== MARCAS ===== */
.clients {
  padding: 3rem 0;
  background: var(--color-principal-fondo);
  border-top: 1px solid rgba(255,80,0,0.1);
  border-bottom: 1px solid rgba(255,80,0,0.1);
}
.marcas-titulo {
  color: var(--color-clarito-texto);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marcas-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.marca-item {
  background: var(--color-fondo-divs);
  border: 1px solid rgba(255,80,0,0.1);
  border-radius: 8px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marca-item span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-clarito-texto);
  letter-spacing: 0.1em;
}

/* ===== CTA ===== */
.cta {
  padding: 4rem 0;
  background: var(--color-naranja);
}
.cta h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.btn-cta {
  background: #fff;
  color: var(--color-naranja);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s;
  white-space: nowrap;
}
.btn-cta:hover { transform: translateY(-2px); color: var(--color-naranja); }

/* ===== FOOTER ===== */
.footer {
  background: #0a1219;
  padding: 4rem 0 0;
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-info p {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-top: 0.5rem;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-naranja); }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--color-naranja); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
  padding: 1.2rem 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
}
.footer-bottom p strong { color: var(--color-naranja); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 996;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 8.5rem;
  right: 1.5rem;
  z-index: 996;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-naranja);
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.back-to-top.active { opacity: 1; }

/* ===== PAGE HERO (about/proyectos/contacto) ===== */
.page-hero {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 2rem 0;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,24,32,0.9) 0%, rgba(16,24,32,0.6) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
}
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
}
.page-hero .breadcrumb-item.active { color: var(--color-naranja); }
.page-hero .breadcrumb-item + .page-hero .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== ABOUT PAGE ===== */
.inicio-acerca { padding: 5rem 0; }
.p-corto {
  font-size: 1rem;
  color: var(--color-clarito-texto);
  line-height: 1.85;
  max-width: 800px;
}

.img-container-about {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.img-container-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.img-container-about:hover img { transform: scale(1.04); }

/* Puestos */
.presupuesto { padding: 5rem 0; background: var(--color-fondo-divs); }
.trabajar .section-header h2, .trabajar .section-header h2 { text-align: left; }

.container-puestos { margin-top: 2rem; }
.puesto {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,80,0,0.1);
  align-items: center;
}
.puesto:last-child { border-bottom: none; }
.titulo { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-naranja); margin-bottom: 0.3rem; }
.puesto h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--color-principal-texto); margin-bottom: 0.5rem; }
.puesto p { font-size: 0.85rem; color: var(--color-clarito-texto); margin-bottom: 0; }
.puesto p i { margin-right: 0.3rem; }

.btn-postularse {
  background: var(--color-naranja);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  gap: 0.4rem;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-postularse:hover { background: var(--color-naranja-hover); color: #fff; }

/* ===== PROYECTOS PAGE ===== */
.proyectos-page { padding: 5rem 0; }
.proyectos-page .proyecto-card { margin-bottom: 1.5rem; }

/* ===== CONTACTO PAGE ===== */
.contacto-section { padding: 5rem 0; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-item .icon-box {
  width: 48px;
  height: 48px;
  background: var(--color-naranja);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-principal-texto);
  margin-bottom: 0.2rem;
}
.info-item p, .info-item a {
  font-size: 0.9rem;
  color: var(--color-clarito-texto);
  text-decoration: none;
  line-height: 1.6;
}
.info-item a:hover { color: var(--color-naranja); }

.php-email-form .form-group { margin-bottom: 1rem; }
.php-email-form .form-control {
  background: var(--color-fondo-divs);
  border: 1px solid rgba(255,80,0,0.2);
  color: var(--color-principal-texto);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.php-email-form .form-control:focus {
  outline: none;
  border-color: var(--color-naranja);
  background: var(--color-fondo-divs);
  color: var(--color-principal-texto);
  box-shadow: 0 0 0 3px rgba(255,80,0,0.12);
}
.php-email-form .form-control::placeholder { color: var(--color-clarito-texto); }
.php-email-form textarea { min-height: 140px; resize: vertical; }
.php-email-form .btn-enviar {
  background: var(--color-naranja);
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.php-email-form .btn-enviar:hover { background: var(--color-naranja-hover); transform: translateY(-2px); }

/* Mapa */
.mapa-wrapper { border-radius: 8px; overflow: hidden; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.animated { animation-duration: 0.8s; animation-fill-mode: both; }
.fadeInDown { animation-name: fadeInDown; }
.fadeInUp { animation-name: fadeInUp; animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  body { padding-bottom: 65px; padding-top: 0; }
  .hero { padding-top: 0; }
  .hero-slider, .hero-slide { height: 100vh; }
  .hero-slide h2 { font-size: 1.8rem; }
  .servicio-home, .proyectos-home, .clients,
  .contacto-section, .proyectos-page { padding: 3rem 0; }
  .section-header h2 { font-size: 1.7rem; }
  .cta h3 { font-size: 1.4rem; }
  .whatsapp-float { bottom: 5.5rem; }
  .back-to-top { bottom: 9rem; }
}

/* ===== INSIGNIA 30 AÑOS ===== */
.insignia-trayectoria {
  display: inline-flex;
  margin-bottom: 1.5rem;
}
.insignia-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #FF5000, #e64400);
  color: #fff;
  border-radius: 50px;
  padding: 0.6rem 1.4rem 0.6rem 1rem;
  box-shadow: 0 4px 20px rgba(255,80,0,0.35);
}
.insignia-numero {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
}
.insignia-texto {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== LOGOS DE MARCAS ===== */
.marca-logo img {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}
.marca-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.marcas-subtitulo {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #888);
  margin-top: -0.5rem;
}

/* ===== LOGO IMAGEN ===== */
.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.logo-img-footer {
  height: 34px;
  width: auto;
  object-fit: contain;
}
