
/* =============================================
   INNDEAGRO S.A. – Estilos Principales
   Archivo: css/styles.css
   ============================================= */
 
/* --- VARIABLES DE COLOR --- */
:root {
  --verde-oscuro: #1a3a2a;
  --verde-medio: #2d6a4f;
  --verde-claro: #52b788;
  --verde-lima: #95d5b2;
  --tierra: #c8842a;
  --arena: #f4e9d0;
  --blanco: #fafaf7;
  --gris: #6b7280;
}
 
/* --- RESET Y BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
 
html { scroll-behavior: smooth; }
 
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blanco);
  color: var(--verde-oscuro);
  overflow-x: hidden;
}
 
/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 4rem; overflow: visible;
  background: rgba(244,233,208,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,106,79,0.2);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--verde-oscuro);
  letter-spacing: 1px;
}
.nav-logo span { color: var(--tierra); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--verde-oscuro); text-decoration: none;
  font-size: 0.9rem; font-weight: 400; letter-spacing: 0.5px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--verde-lima); }
.nav-cta {
  background: var(--tierra); color: #fff;
  padding: 0.6rem 1.5rem; border-radius: 2px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: background 0.3s;
}
.nav-cta:hover { background: #a06820; }
 
/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: url('../img/hero-bg.webp') center center / cover no-repeat;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: start; padding: 8rem 4rem 4rem;
  position: relative; overflow: hidden;
}
#hero::before { content: none; }
#hero::after  { content: none; }
.hero-content { max-width: 55%; }

.hero-tag {
  display: inline-block;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.2);
  color: #1a1a1a;
  padding: 0.4rem 1rem; border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.25s ease both;
}
.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #2d2d2d;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.35s ease both;
}
.hero-btns { display: flex; gap: 1rem; animation: fadeUp 0.8s 0.45s ease both; }
 
.btn-primary {
  background: var(--verde-claro); color: var(--verde-oscuro);
  padding: 1rem 2rem; border-radius: 2px;
  font-weight: 600; text-decoration: none; font-size: 0.95rem;
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--verde-lima); transform: translateY(-2px); }
 
.btn-outline {
  border: 1px solid rgba(0,0,0,0.4); color: #1a1a1a;
  padding: 1rem 2rem; border-radius: 2px;
  font-weight: 400; text-decoration: none; font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--verde-oscuro); color: var(--verde-oscuro); }
 
.hero-visual {
  display: flex; justify-content: flex-end; align-items: center;
  position: relative; animation: fadeIn 1.2s 0.5s ease both;
  padding-right: 0;
}
.hero-card-float {
  background: rgba(15,36,25,0.75);
  border: 1px solid rgba(82,183,136,0.5);
  border-radius: 16px; padding: 2rem; width: 340px;
  backdrop-filter: blur(10px);
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.stat-box {
  background: rgba(15,36,25,0.6); border-radius: 10px; padding: 1.2rem;
  border: 1px solid rgba(82,183,136,0.4);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.stat-label { font-size: 0.75rem; color: #ffffff; font-weight: 500; margin-top: 0.2rem; }
.province-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ptag {
  background: rgba(15,36,25,0.7); border: 1px solid rgba(82,183,136,0.6);
  color: #ffffff; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem;
}
 
/* =============================================
   SECCIÓN GENÉRICA
   ============================================= */
section { padding: 6rem 4rem; }
 
/* =============================================
   NOSOTROS
   ============================================= */
#nosotros {
  background: var(--arena);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.section-tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--verde-medio); font-weight: 600; margin-bottom: 1rem;
}
.section-tag::before { content: '— '; }
 
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem;
  color: var(--verde-oscuro);
}
.body-text { color: var(--gris); line-height: 1.85; font-size: 1rem; }
 
.mission-vision {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem;
}
.mv-card {
  background: #fff; border-radius: 8px; padding: 1.5rem;
  border-left: 3px solid var(--verde-claro);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.mv-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--verde-medio); margin-bottom: 0.5rem; }
.mv-card p  { font-size: 0.9rem; color: var(--gris); line-height: 1.6; }
 
.nosotros-img { position: relative; border-radius: 16px; overflow: hidden; height: 420px; }
.director-foto { width: 100%; height: 100%; object-fit: cover; }
.director-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,58,42,0.92)); padding: 2rem; text-align: center; }
.director-contacto { color: rgba(255,255,255,0.8); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem; }
.director-email { color: var(--verde-lima); font-size: 1rem; font-weight: 500; text-decoration: none; }
.director-email:hover { color: #fff; }
.mv-icon { width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }
 
/* =============================================
   SERVICIOS
   ============================================= */
#servicios { background: var(--verde-oscuro); }
#servicios h2 { color: #fff; }
#servicios .section-tag { color: var(--verde-lima); }
 
.servicios-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.servicios-header p { color: rgba(255,255,255,0.6); line-height: 1.8; }
 
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
 
.servicio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 12px; padding: 2rem;
  transition: all 0.3s; cursor: default;
}
.servicio-card:hover {
  background: rgba(82,183,136,0.08);
  border-color: rgba(82,183,136,0.4);
  transform: translateY(-4px);
}
.servicio-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(82,183,136,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(82,183,136,0.2);
}
.servicio-card img {
  width: 100%; height: 180px;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(0.95);
  transform-origin: center top;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.servicio-card h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
.servicio-card p  { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; }
 
/* =============================================
   VALORES
   ============================================= */
#valores { background: #fff; }
 
.valores-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
 
.valores-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
 
.valor-card {
  text-align: center; padding: 2rem 1rem;
  border-radius: 12px; transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.06);
}
.valor-card:hover { background: var(--arena); transform: translateY(-4px); }
.valor-icon { display: block; width: 52px; height: 52px; margin: 0 auto 1rem; }
.valor-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--verde-oscuro); margin-bottom: 0.4rem; }
.valor-card p  { font-size: 0.8rem; color: var(--gris); line-height: 1.5; }
 
/* =============================================
   COBERTURA
   ============================================= */
#cobertura {
  background: var(--arena);
  display: grid; grid-template-columns: 1fr;
}
.mapa-container { display: flex; justify-content: center; align-items: center; background: transparent; }
.provincias { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.provincia-card {
  background: #fff; border-radius: 10px; padding: 1.5rem;
  border-bottom: 3px solid var(--tierra); text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.provincia-card:hover { transform: translateY(-3px); }
.provincia-card .pin { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.provincia-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--verde-oscuro); }
.provincia-icon { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 0.8rem; display: block; filter: brightness(0) saturate(100%) invert(58%) sepia(40%) saturate(500%) hue-rotate(100deg) brightness(90%); }

.mosaico-provincias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; border-radius: 12px; overflow: hidden; }
.mosaico-item { position: relative; height: 280px; overflow: hidden; }
.mosaico-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mosaico-item:hover img { transform: scale(1.05); }
.bandera { position: absolute; top: 12px; left: 12px; width: 48px; height: 30px; display: flex; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.bandera-guayas { flex-direction: column; }
.bandera-guayas span:nth-child(1) { background: #00AEEF; flex: 1; }
.bandera-guayas span:nth-child(2) { background: #fff; flex: 1; }
.bandera-guayas span:nth-child(3) { background: #00AEEF; flex: 1; }
.bandera-guayas span:nth-child(4) { background: #fff; flex: 1; }
.bandera-guayas span:nth-child(5) { background: #00AEEF; flex: 1; }
.bandera-losrios { flex-direction: column; }
.bandera-losrios span:nth-child(1) { background: #FFD700; flex: 1; }
.bandera-losrios span:nth-child(2) { background: #fff; flex: 1; }
.bandera-losrios span:nth-child(3) { background: #003087; flex: 1; }
.bandera-eloro { flex-direction: row; }
.bandera-eloro span:nth-child(1) { background: #006400; flex: 1; }
.bandera-eloro span:nth-child(2) { background: #FFD700; flex: 3; }
.bandera-eloro span:nth-child(3) { background: #006400; flex: 1; }
.bandera-santaelena { flex-direction: row; }
.bandera-santaelena span:nth-child(1) { background: #006400; flex: 1; }
.bandera-santaelena span:nth-child(2) { background: #003087; flex: 1; }
.bandera-santaelena span:nth-child(3) { background: #00AEEF; flex: 1; }
.bandera-mini { display: inline-flex; width: 24px; height: 15px; border-radius: 2px; overflow: hidden; vertical-align: middle; margin-left: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.bandera-guayas-mini { flex-direction: column; }
.bandera-guayas-mini span:nth-child(1) { background: #00AEEF; flex: 1; }
.bandera-guayas-mini span:nth-child(2) { background: #fff; flex: 1; }
.bandera-guayas-mini span:nth-child(3) { background: #00AEEF; flex: 1; }
.bandera-guayas-mini span:nth-child(4) { background: #fff; flex: 1; }
.bandera-guayas-mini span:nth-child(5) { background: #00AEEF; flex: 1; }
.bandera-losrios-mini { flex-direction: column; }
.bandera-losrios-mini span:nth-child(1) { background: #FFD700; flex: 1; }
.bandera-losrios-mini span:nth-child(2) { background: #fff; flex: 1; }
.bandera-losrios-mini span:nth-child(3) { background: #003087; flex: 1; }
.bandera-eloro-mini { flex-direction: row; }
.bandera-eloro-mini span:nth-child(1) { background: #006400; flex: 1; }
.bandera-eloro-mini span:nth-child(2) { background: #FFD700; flex: 3; }
.bandera-eloro-mini span:nth-child(3) { background: #006400; flex: 1; }
.bandera-santaelena-mini { flex-direction: row; }
.bandera-santaelena-mini span:nth-child(1) { background: #006400; flex: 1; }
.bandera-santaelena-mini span:nth-child(2) { background: #003087; flex: 1; }
.bandera-santaelena-mini span:nth-child(3) { background: #00AEEF; flex: 1; }
.mosaico-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 1.5rem 1rem 0.8rem; font-weight: 600; font-size: 0.95rem; }
/* =============================================
   CONTACTO (CTA)
   ============================================= */
#contacto {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
  text-align: center; padding: 7rem 4rem; position: relative; overflow: hidden;
}
#contacto::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,132,42,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
#contacto h2   { color: #fff; font-size: 2.8rem; margin-bottom: 1rem; }
#contacto p    { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 2.5rem; }
.contacto-box {
  display: inline-flex; gap: 1rem; align-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; padding: 1rem 2rem;
  color: #fff; font-size: 1rem;
}
 
/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--verde-oscuro);
  color: rgba(255,255,255,0.7);
  padding: 4rem 4rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.footer-col:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: start;
  padding-top: 0;
  margin-top: 0;
}
.footer-logo {
  height: 100px;
  width: auto;
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: block;
  filter: brightness(0) invert(1);
  object-fit: contain;
  object-position: top left;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col ul li,
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--verde-lima); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  filter: brightness(0) invert(1) opacity(0.6);
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom strong { color: var(--verde-lima); }
 
/* =============================================
   ANIMACIONES
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hamburger — oculto en desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--verde-oscuro); border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {

  nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0.8rem 1.2rem;
    gap: 0;
  }

  .navbar-logo img { height: 160px !important; width: auto !important; object-fit: contain; flex-shrink: 0; }

  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .nav-tag { display: none; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(244,233,208,0.98);
    border-top: 1px solid rgba(45,106,79,0.15);
    padding: 0.5rem 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(45,106,79,0.08);
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 100px 20px 40px 20px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    white-space: normal;
    text-align: left;
  }

  .hero-desc {
    font-size: 0.9rem;
    text-align: left;
    max-width: 100%;
  }

  .hero-tag {
    white-space: normal;
    text-align: center;
    font-size: 0.7rem;
  }

  .hero-btns {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-btns a {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    width: 90%;
    margin: 20px auto 0 auto;
    left: auto;
    right: auto;
    top: auto;
  }

  .hero-card-float {
    width: 100%;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  #nosotros {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .nosotros-img {
    height: 280px;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  #servicios {
    padding: 3rem 1.5rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #valores {
    padding: 3rem 1.5rem;
  }

  .valores-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #cobertura {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .mosaico-provincias {
    grid-template-columns: 1fr 1fr;
  }

  #contacto {
    padding: 4rem 1.5rem;
  }

  #contacto h2 {
    font-size: 1.8rem;
  }

  .contacto-box {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  footer {
    padding: 3rem 1.5rem 0;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

}

@media (max-width: 480px) {

  .hero-title {
    font-size: 2.2rem;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .mosaico-provincias {
    grid-template-columns: 1fr;
  }

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

  h2 {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

}