/* ==========================================================================
   TEMA "ECO-CORPORATIVE LIGHT" - INVERSIONES PULIWEN
   ========================================================================== */

:root {
  /* Paleta Clara y Sustentable */
  --bg-light: #F5F8F5;      /* Fondo principal: gris/verde muy claro y limpio */
  --bg-card: #FFFFFF;       /* Fondo tarjetas: blanco puro */
  
  --text-main: #2C362B;     /* Texto principal: Gris oscuro forestal */
  --text-grey: #637361;     /* Texto secundario */
  
  --accent: #7CB328;        /* Verde Vibrante Profesional */
  --accent-hover: #62911d;
  --accent-glow: rgba(124, 179, 40, 0.3);
  
  --hero-overlay: rgba(20, 38, 24, 0.85); /* Overlay del Hero (Verde profundo oscuro) */
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- CONTENEDORES COMUNES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { 
  font-family: var(--font-heading); font-size: 2.8rem; 
  font-weight: 900; color: var(--text-main); text-transform: uppercase; 
}
.section-header h2 span { color: var(--accent); }
.divider { 
  height: 5px; width: 80px; background: var(--accent); 
  margin: 15px auto 0; border-radius: 3px; 
}

/* --- BOTONES --- */
.btn-primary {
  background: var(--accent); color: #fff; 
  padding: 14px 35px; border-radius: 50px; font-family: var(--font-heading);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  border: none; cursor: pointer; transition: 0.3s; display: inline-block;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:hover { 
  background: var(--accent-hover); transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(98, 145, 29, 0.4); 
}
.btn-large { padding: 18px 45px; font-size: 1.1rem; }
.full-width { width: 100%; }

/* --- NAVBAR DINÁMICO --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 25px 5%; transition: all 0.4s ease; background: transparent;
}
/* Cuando el usuario baja, el menú se vuelve blanco con letras oscuras */
.navbar.scrolled {
  background: #ffffff; padding: 15px 5%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}
.navbar.scrolled .logo-text, .navbar.scrolled .nav-links a { color: var(--text-main); }
.navbar.scrolled .nav-links a:hover { color: var(--accent); }
.navbar.scrolled .burger-menu i { color: var(--text-main); }

.logo-container { display: flex; align-items: center; gap: 15px; }
.main-logo { height: 55px; width: auto; transition: 0.3s; }
.logo-container:hover .main-logo { transform: scale(1.05) rotate(-5deg); }
.logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; color: #fff; transition: 0.3s; }

.nav-links a {
  color: #fff; margin-left: 35px; font-weight: 600; 
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -5px; left: 0; background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  border: 2px solid var(--accent); padding: 10px 25px !important; border-radius: 50px;
  color: var(--accent) !important; font-weight: 800 !important; background: transparent;
}
.btn-nav:hover { background: var(--accent); color: #fff !important; }
.navbar.scrolled .btn-nav { color: var(--accent) !important; }
.navbar.scrolled .btn-nav:hover { color: #fff !important; }

/* --- HERO SECTION --- */
.hero-section {
  position: relative; height: 100vh; min-height: 650px;
  background-size: cover; background-position: center; background-attachment: fixed;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--hero-overlay); z-index: 1; /* Tono verde bosque oscuro */
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-content h1 {
  font-family: var(--font-heading); font-size: 4.8rem; line-height: 1.1;
  font-weight: 900; margin-bottom: 25px; letter-spacing: -2px; color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.text-highlight { color: var(--accent); }
.hero-content p {
  font-size: 1.3rem; color: #e5ebe4; font-weight: 400;
  margin-bottom: 45px; max-width: 750px; margin-left: auto; margin-right: auto;
}

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center;
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
  animation: bounce 2s infinite; opacity: 0.7;
}
@keyframes bounce { 
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 
  40% {transform: translateX(-50%) translateY(-10px);} 
  60% {transform: translateX(-50%) translateY(-5px);} 
}

/* --- SERVICIOS --- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
}
.service-card {
  background: var(--bg-card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.04); transition: 0.4s ease;
  border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.service-card:hover { 
  transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}
.card-img-wrapper { position: relative; height: 240px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.service-card:hover .card-img-wrapper img { transform: scale(1.1); }

.card-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(124, 179, 40, 0.85); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: 0.4s ease;
}
.card-overlay i { color: #fff; font-size: 3.5rem; transform: translateY(20px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.service-card:hover .card-overlay { opacity: 1; }
.service-card:hover .card-overlay i { transform: translateY(0); }

.card-content { padding: 35px 25px; text-align: center; flex: 1; display: flex; align-items: center; justify-content: center;}
.card-content h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-main); font-weight: 800;}

/* --- CLIENTES (GIGANTES E IMPONENTES) --- */
.clients-section { background-color: #FFFFFF; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }
.clients-grid {
  /* Cambiado a 2 columnas para que sean enormes en escritorio */
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.client-card {
  background: var(--bg-light); padding: 50px; border-radius: 20px;
  display: flex; justify-content: center; align-items: center; height: 250px; /* Tarjetas muy altas */
  border: 1px solid rgba(0,0,0,0.03); transition: 0.4s; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.client-card:hover { 
  background: #fff; border-color: var(--accent); box-shadow: 0 20px 40px rgba(124, 179, 40, 0.15);
  transform: translateY(-5px);
}

/* El truco de la imagen: Gris por defecto, full color al pasar el mouse */
.client-card img { 
  max-width: 100%; max-height: 140px; /* Logos inmensos */
  object-fit: contain; 
  filter: grayscale(100%) opacity(0.6); 
  transition: all 0.4s ease;
}
.client-card:hover img { 
  filter: grayscale(0%) opacity(1); transform: scale(1.05);
}

/* --- NOSOTROS (CARRUSEL) --- */
.about-section { background: var(--bg-light); }
.carousel { position: relative; max-width: 950px; margin: 0 auto; }
.stacked-carousel { position: relative; min-height: 380px; }

.stacked-card {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stacked-card.active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; z-index: 2; }

.content-box {
  background: #fff; padding: 60px; border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  border-top: 8px solid var(--accent); text-align: center; position: relative;
}
.quote-icon { font-size: 3rem; color: var(--accent); opacity: 0.15; margin-bottom: 25px; }
.content-box h3 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--text-main); margin-bottom: 20px; font-weight: 900;}
.content-box p { color: var(--text-grey); font-size: 1.15rem; line-height: 1.8; margin-bottom: 15px; }
.content-box strong { color: var(--text-main); font-weight: 700; }

.carousel-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--text-main); border: none;
  width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
  transition: 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.carousel-nav-btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.1); }
#prev { left: -30px; }
#next { right: -30px; }

/* --- CONTACTO --- */
.contact-section { background-color: #FFFFFF; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: center;}

.contact-info-wrapper { display: flex; flex-direction: column; gap: 25px; }
.contact-card {
  background: var(--bg-light); padding: 30px; border-radius: 16px;
  display: flex; align-items: center; gap: 25px; border: 1px solid rgba(0,0,0,0.02);
  transition: 0.4s;
}
.contact-card:hover { transform: translateX(10px); background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: rgba(124, 179, 40, 0.3);}
.icon-circle {
  width: 70px; height: 70px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 26px; flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-text-box h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin-bottom: 5px; font-weight: 800;}
.contact-text-box p { color: var(--text-grey); font-size: 1.05rem; font-weight: 500;}

.contact-form-wrapper {
  background: #fff; padding: 50px; border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.03);
}
.contact-form-wrapper h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 35px; color: var(--text-main); font-weight: 900;}
.input-group { margin-bottom: 25px; }
.input-group input, .input-group textarea {
  width: 100%; background: var(--bg-light); border: 2px solid transparent; padding: 18px 25px;
  border-radius: 12px; color: var(--text-main); font-family: var(--font-body); font-size: 1.05rem;
  transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 20px rgba(124, 179, 40, 0.15);
}
.success-message {
  background: #f0fdf0; border: 2px solid var(--accent); color: var(--accent-hover);
  padding: 18px; border-radius: 12px; text-align: center; margin-top: 25px; font-weight: 700;
  font-size: 1.1rem;
}

/* --- FOOTER --- */
footer { background: var(--text-main); padding: 50px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-text { text-align: right; }
.footer-text p { color: #a5b0a3; font-size: 0.95rem; margin-bottom: 5px;}
.footer-text .credits a { color: var(--accent); font-weight: 700; letter-spacing: 1px;}
.footer-text .credits a:hover { color: #fff;}

/* --- MÓVILES Y RESPONSIVE --- */
.burger-menu { display: none; color: #fff; font-size: 30px; cursor: pointer; transition: 0.3s;}
.navbar.scrolled .burger-menu { color: var(--text-main); }

.mobile-nav-overlay {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 350px; height: 100vh;
  background: #fff; z-index: 2000; padding: 40px;
  transform: translateX(100%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; border-bottom: 2px solid var(--bg-light); padding-bottom: 20px;}
.mobile-nav-header h2 { font-family: var(--font-heading); color: var(--text-main); font-weight: 900;}
.close-menu-btn { font-size: 30px; color: var(--text-main); cursor: pointer; transition: 0.3s; }
.close-menu-btn:hover { color: var(--accent); transform: rotate(90deg); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { font-size: 1.2rem; color: var(--text-grey); font-weight: 700; text-transform: uppercase; transition: 0.3s;}
.mobile-nav-links a:hover { color: var(--accent); padding-left: 10px; }

@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .burger-menu { display: block; }
  .logo-text { font-size: 1.1rem; }
  .main-logo { height: 45px; }
  
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1.1rem; }
  
  .services-grid { grid-template-columns: 1fr; }
  
  /* Clientes en móvil pasan a 1 columna gigante */
  .clients-grid { grid-template-columns: 1fr; gap: 30px;}
  .client-card { height: 200px; padding: 30px;}
  
  .content-box { padding: 40px 20px; }
  .content-box h3 { font-size: 1.8rem; }
  #prev { left: 0; width: 45px; height: 45px;} 
  #next { right: 0; width: 45px; height: 45px;}
  
  .contact-form-wrapper { padding: 40px 20px; }
  .footer-content { flex-direction: column; gap: 30px; text-align: center; }
  .footer-text { text-align: center; }
}