:root {
  --c1: #2fa72f;
  --c1-dark: #1e7b1e;
  --c2: #f0d85d;
  --bg-soft: #f7fff2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: #ffffff;
  overflow-x: hidden;
}

/* HEADER */
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.navbar-logo {
  height: 60px;
  width: auto;
}

.nav-link {
  font-weight: 700;
  color: var(--c1) !important;
  font-size: 18px;
  margin-left: 22px;
}

.nav-link:hover {
  color: var(--c2) !important;
}

/* HERO */
.hero {
  padding-top: 180px;
  padding-bottom: 220px;
  text-align: center;
  background-image: url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: 50px;
  font-weight: 900;
  text-shadow: 0 0 25px rgba(0, 255, 80, 0.65);
}

.hero p {
  font-size: 22px;
  opacity: 0.9;
}

.cta-btn {
  margin-top: 25px;
  display: inline-block;
  padding: 16px 45px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--c2), #fff7b8);
  color: black;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* DASHBOARD */
.dashboard-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.dashboard-card {
  min-width: 240px;
  max-width: 260px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(5, 20, 5, 0.75);
  border: 1px solid #3ae83a80;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 20px #33ff3390;
  transition: 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px #33ff33cc;
}

.value {
  font-size: 38px;
  font-weight: 800;
  margin-top: 10px;
}

/* QUIÉNES SOMOS */
/* NUEVO FONDO PROFESIONAL */
.quienes-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #f2ffe9, #f7fff2);
}

/* TÍTULO CENTRADO */
.quienes-title-main {
  font-size: 42px;
  font-weight: 800;
  color: #2fa72f;
  margin-bottom: 60px;
}

/* CONTENEDOR INTERNO */
.quienes-wrapper {
  background: #ffffff;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 45px;
  flex-wrap: wrap;
}

/* IMAGEN */
.quienes-img-box img {
  width: 100%;
  max-width: 520px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

/* TEXTO */
.quienes-text-box {
  flex: 1;
  min-width: 300px;
}

/* LISTA */
.quienes-list li {
  font-size: 18px;
  margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .quienes-wrapper {
    text-align: center;
  }

  .quienes-text-box {
    max-width: 100%;
  }
}

/* SERVICIOS */
.servicios-section {
  padding: 120px 0;
  background: radial-gradient(
      circle at top left,
      rgba(53, 144, 42, 0.2),
      transparent 70%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(53, 144, 42, 0.15),
      transparent 60%
    ),
    linear-gradient(180deg, #e9ffe5 0%, #f4fff0 40%, #ffffff 100%);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 45px;
}

.servicio-card {
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(53, 144, 42, 0.12);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.servicio-card:hover {
  transform: translateY(-8px);
}

.servicio-icon {
  font-size: 48px;
  color: var(--c1);
}

/* CONTACTO */
.contact-section {
  background: var(--bg-soft);
  padding: 80px 4%;
  overflow-x: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  max-width: 1100px;
  margin: auto;
}

.contact-info-box,
.contact-form-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Inputs sin desbordes */
.input-group-custom {
  position: relative;
  margin-bottom: 18px;
  width: 100%;
}

.input-group-custom i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c1-dark);
}

.input-group-custom input,
.input-group-custom textarea {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  border: 1px solid #c8e3c8;
  font-size: 16px;
  resize: none;
  max-width: 100%;
  box-sizing: border-box;
}

.textarea-group i {
  top: 18px;
}

.contact-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--c2), #ffe88c);
  font-weight: 800;
  font-size: 17px;
  color: #000;
  cursor: pointer;
}

/* CELULARES */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-section {
    padding: 60px 5%;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 25px;
  }

  .contact-item .icon {
    font-size: 22px;
  }

  /* Ajuste fino para inputs en pantallas pequeñas */
  .input-group-custom input,
  .input-group-custom textarea {
    font-size: 15px;
    padding: 12px 14px 12px 42px;
  }
}

/* MUY PEQUEÑOS (iPhone SE / Android Mini) */
@media (max-width: 430px) {
  .contact-section {
    padding: 50px 4%;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 20px;
  }

  .input-group-custom input,
  .input-group-custom textarea {
    font-size: 14px;
    padding: 12px 40px;
  }

  .contact-btn {
    font-size: 16px;
    padding: 13px;
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  /* Ajuste márgenes para evitar cortes */
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  /* HEADER */
  header {
    padding: 8px 0;
  }

  .navbar-logo {
    height: 48px;
  }

  /* HERO */
  .hero {
    padding-top: 140px;
    padding-bottom: 160px;
    background-position: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .cta-btn {
    padding: 12px 35px;
    font-size: 16px;
  }

  /* QUIÉNES SOMOS */
  .quienes-wrapper {
    padding: 25px;
    gap: 25px;
  }

  .quienes-img-box img {
    max-width: 100%;
  }

  .quienes-title-main {
    font-size: 32px;
    margin-bottom: 35px;
  }

  /* SERVICIOS */
  .servicio-card {
    padding: 30px;
  }

  /* CONTACTO */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-left: -30px;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 28px;
  }

  .contact-title {
    font-size: 32px;
    margin-bottom: 25px;
  }

  /* Íconos más equilibrados */
  .contact-item .icon {
    font-size: 22px;
  }

  /* Inputs más compactos */
  .input-group-custom input,
  .input-group-custom textarea {
    padding: 12px 40px;
    font-size: 15px;
  }

  .contact-btn {
    font-size: 16px;
    padding: 14px;
  }
}

/* RESPONSIVE EXTRA PARA CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .dashboard-card {
    min-width: 100%;
    padding: 16px;
  }

  .quienes-title-main {
    font-size: 28px;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 22px;
  }

  .servicio-card {
    padding: 25px;
  }
  footer {
    padding: 10px;
  }
}

/* FOOTER */
footer {
  background: #35902a;
  padding: 15px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
}

body,
html {
  overflow-x: hidden !important;
}

/* FLOATING WHATSAPP */

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 60;
}

.whatsapp-fab:hover {
  transform: translateY(-1px);
}
