/* =============================
   ESTILOS MAPA Y COBERTURA
   ============================= */
.municipio-badge-label {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 0.98em;
  font-weight: 600;
  border-radius: 0.7em;
  padding: 0.13em 0.7em 0.13em 0.7em;
  box-shadow: 0 2px 8px #0002;
  border: 1.5px solid #eee;
  pointer-events: none;
  white-space: nowrap;
  margin-top: 2px;
}
.municipio-badge-label.meta {
  border-top: 4px solid #1976d2;
}
.municipio-badge-label.tolima {
  border-top: 4px solid #ef6c00;
}
.municipio-badge-label.narino {
  border-top: 4px solid #388e3c;
}
.municipio-badge-label.putumayo {
  border-top: 4px solid #8e24aa;
}
.municipio-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: #1976d2;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px #0003;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  animation: bounceIn 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.municipio-badge.meta {
  background: #1976d2;
}
.municipio-badge.tolima {
  background: #ef6c00;
}
.municipio-badge.narino {
  background: #388e3c;
}
.municipio-badge.putumayo {
  background: #8e24aa;
}
@keyframes bounceIn {
  0% {
    transform: translateX(-50%) scale(0.2);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
  80% {
    transform: translateX(-50%) scale(0.95);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
.leaflet-popup-content-wrapper {
  border-radius: 1rem;
  background: #fff;
  color: #222;
  font-weight: 500;
  box-shadow: 0 2px 12px #1976d2aa;
}
.leaflet-popup-tip {
  background: #fff;
}
/* AwesomeMarkers custom style */
.awesome-marker {
  border-radius: 50%;
  box-shadow: 0 4px 16px #0003;
  border: 2.5px solid #fff;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.awesome-marker:hover {
  transform: scale(1.18);
  z-index: 999;
  box-shadow: 0 8px 32px #0005;
}
/* Marcadores leaflet-color-markers con sombra y efecto hover */
.leaflet-marker-icon.custom-color-marker {
  box-shadow: 0 4px 16px #0004;
  border-radius: 12px 12px 24px 24px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.leaflet-marker-icon.custom-color-marker:hover {
  transform: scale(1.18);
  z-index: 999;
  box-shadow: 0 8px 32px #0007;
}
/* Marcadores personalizados con sombra y borde */
.leaflet-marker-icon.custom-marker {
  box-shadow:
    0 4px 16px #0005,
    0 1px 2px #fff8;
  border: 2.5px solid #fff;
  border-radius: 12px 12px 24px 24px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.leaflet-marker-icon.custom-marker:hover {
  transform: scale(1.18);
  z-index: 999;
  box-shadow:
    0 8px 24px #0007,
    0 2px 8px #fff8;
}
.map-frame {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 1.5rem;
  box-shadow:
    0 6px 24px #0002,
    0 1.5px 6px #1976d2aa;
  border: 4px solid #1976d2;
  background: linear-gradient(135deg, #e3f2fd 60%, #fffde7 100%);
  position: relative;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.map-frame:hover {
  box-shadow:
    0 12px 36px #1976d2bb,
    0 2px 8px #0002;
  transform: scale(1.01);
}
.map-title {
  position: absolute;
  top: -2.2rem;
  left: 1.5rem;
  background: #1976d2;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #0002;
}
#map {
  width: 100%;
  height: 400px;
  border-radius: 1.2rem;
  z-index: 1;
}
.leaflet-control-zoom {
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: 0 2px 8px #1976d2aa;
}
.leaflet-popup-content-wrapper {
  border-radius: 1rem;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}
.leaflet-popup-tip {
  background: #e3f2fd;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.2rem 2.5rem;
  width: 100%;
  margin: 2.5rem 0;
  padding: 0 1vw;
}
.services-grid .card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow:
    0 2px 16px 0 #0001,
    0 1.5px 6px #fdcd1533;
  padding: 1.2rem 0.7rem 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  border: 1.5px solid #eafbe7;
}
.services-grid .card:hover {
  box-shadow:
    0 8px 32px #fdcd1555,
    0 2px 8px #25872b22;
  transform: translateY(-4px) scale(1.025);
}
.services-grid .service-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 8px #0002;
}
.services-grid h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}
.services-grid p {
  color: #222;
  margin: 0 0 0.5rem 0;
  text-align: center;
  font-size: 0.97rem;
}
.services-grid ul {
  text-align: left;
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.95rem;
}
/* =============================
   ESTILOS ALTERNATIVOS PÁGINA PQR (pqr-page-alt)
   ============================= */
.pqr-page-alt .pqr-form {
  background: #fffde7;
  border-radius: 1.2em;
  box-shadow: 0 2px 16px #ff980033;
  padding: 2em 1.2em 1.5em 1.2em;
  margin-bottom: 2.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 2.5px solid #ffb300;
}
.pqr-page-alt .pqr-form-row {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
}
.pqr-page-alt .pqr-form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1em;
  min-width: 0;
}
.pqr-page-alt .pqr-form label {
  font-weight: 600;
  margin-bottom: 0.4em;
  color: #ef6c00;
  letter-spacing: 0.2px;
}
.pqr-page-alt .pqr-form input,
.pqr-page-alt .pqr-form select,
.pqr-page-alt .pqr-form textarea {
  border: 1.5px solid #c8e6c9;
  border-radius: 0.5em;
  padding: 0.6em 1em;
  font-size: 1em;
  background: #fff;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  max-width: 100%;
  box-sizing: border-box;
}
.pqr-page-alt .pqr-form input:focus,
.pqr-page-alt .pqr-form select:focus,
.pqr-page-alt .pqr-form textarea:focus {
  border-color: #43a047;
  box-shadow: 0 0 0 2px #c8e6c9;
  outline: none;
}
.pqr-page-alt .pqr-form textarea {
  resize: vertical;
}
.pqr-page-alt .pqr-form button[type="submit"] {
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 60%, #43a047 100%);
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 2.2em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px #ff980044;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.13s;
}
.pqr-page-alt .pqr-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #ffd54f 0%, #ff9800 60%, #388e3c 100%);
  box-shadow: 0 4px 24px #43a04744;
  transform: scale(1.03);
}
.pqr-page-alt .pqr-autorizaciones {
  background: #fffde7;
  border-radius: 0.7em;
  padding: 1em 1.2em 0.7em 1.2em;
  margin-bottom: 1.2em;
  border: 1.5px solid #ffb300;
}
.pqr-page-alt .pqr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-bottom: 0.5em;
}
.pqr-page-alt .pqr-checkbox input[type="checkbox"] {
  accent-color: #43a047;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.18em;
}
.pqr-page-alt .pqr-checkbox label {
  font-weight: 500;
  color: #333;
  font-size: 0.98em;
  cursor: pointer;
}
.pqr-page-alt #pqrFormMsg {
  border-radius: 0.5em;
  padding: 0.7em 1em;
  margin-top: 1em;
  font-size: 1.08em;
}
.pqr-page-alt #pqrFormMsg[style*="color: #388e3c"] {
  background: #e8f5e9;
  border: 1.5px solid #43a047;
}
.pqr-page-alt #pqrFormMsg[style*="color: #d32f2f"] {
  background: #fff3e0;
  border: 1.5px solid #ff9800;
}
.pqr-page-alt .pqr-form select:disabled {
  background: #f5f5f5;
  color: #aaa;
}
@media (max-width: 900px) {
  .pqr-page-alt .pqr-form {
    padding: 1.2em 0.5em 1em 0.5em;
  }
}
@media (max-width: 700px) {
  .pqr-page-alt .pqr-form-row {
    flex-direction: column;
    gap: 0;
  }
}
/* =============================
   ESTILOS PÁGINA PQR
   ============================= */
body.pqr-page {
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  color: #222;
}
.pqr-form {
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 2px 16px #0001;
  padding: 2em 1.2em 1.5em 1.2em;
  margin-bottom: 2.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 2.5px solid #fdcd15;
}
.pqr-form-row {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
}
.pqr-form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1em;
  min-width: 0;
  position: relative;
}
.pqr-form label {
  font-weight: 600;
  margin-bottom: 0.4em;
  color: #25872b;
  letter-spacing: 0.2px;
}
.pqr-form input,
.pqr-form select,
.pqr-form textarea {
  border: 1.5px solid #c8e6c9;
  border-radius: 0.5em;
  padding: 0.6em 1em 0.6em 2.5em;
  font-size: 1em;
  background: #fff;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 6px #25872b11;
}
.pqr-form input:focus,
.pqr-form select:focus,
.pqr-form textarea:focus {
  border-color: #25872b;
  box-shadow:
    0 0 0 2px #c8e6c9,
    0 2px 12px #25872b22;
  background: #f9fbe7;
  outline: none;
}
.pqr-form textarea {
  resize: vertical;
}
.pqr-form-group > i {
  position: absolute;
  left: 0.8em;
  top: 2.2em;
  color: #fdcd15;
  font-size: 1.1em;
  pointer-events: none;
  opacity: 0.7;
}
.pqr-form-group select,
.pqr-form-group textarea {
  padding-left: 2.5em !important;
}
.pqr-form button[type="submit"] {
  background: linear-gradient(90deg, #fdcd15 0%, #25872b 100%);
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 2.2em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px #25872b22;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.13s;
}
.pqr-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #25872b 0%, #fdcd15 100%);
  box-shadow: 0 4px 24px #25872b44;
  transform: scale(1.03);
}
.pqr-autorizaciones {
  background: #f5fbe7;
  border-radius: 0.7em;
  padding: 1em 1.2em 0.7em 1.2em;
  margin-bottom: 1.2em;
  border: 1.5px solid #fdcd15;
}
.pqr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-bottom: 0.5em;
}
.pqr-checkbox input[type="checkbox"] {
  accent-color: #25872b;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.18em;
}
.pqr-checkbox label {
  font-weight: 500;
  color: #222;
  font-size: 0.98em;
  cursor: pointer;
}
#pqrFormMsg {
  border-radius: 0.5em;
  padding: 0.7em 1em;
  margin-top: 1em;
  font-size: 1.08em;
}
#pqrFormMsg[style*="color: #388e3c"] {
  background: #eafbe7;
  border: 1.5px solid #25872b;
}
#pqrFormMsg[style*="color: #d32f2f"] {
  background: #fff3e0;
  border: 1.5px solid #fdcd15;
}
.pqr-form select:disabled {
  background: #f5f5f5;
  color: #aaa;
}
@media (max-width: 900px) {
  .pqr-form {
    padding: 1.2em 0.5em 1em 0.5em;
  }
}
@media (max-width: 700px) {
  .pqr-form-row {
    flex-direction: column;
    gap: 0;
  }
}
/* ==========================================
   ANIMACIÓN ONDA BANNER EMPRECOLSA
   ========================================== */
.banner-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 0;
}
.banner-wave path {
  animation: wave-move 5.5s linear infinite alternate;
}
@keyframes wave-move {
  0% {
    d: path(
      "M0,80L60,70C120,60,240,40,360,50C480,60,600,100,720,90C840,80,960,40,1080,30C1200,20,1320,40,1380,50L1440,60V100H0Z"
    );
  }
  25% {
    d: path(
      "M0,70L60,80C120,90,240,60,360,70C480,80,600,90,720,80C840,70,960,60,1080,50C1200,40,1320,60,1380,70L1440,80V100H0Z"
    );
  }
  50% {
    d: path(
      "M0,90L60,80C120,70,240,100,360,90C480,80,600,70,720,80C840,90,960,100,1080,90C1200,80,1320,100,1380,90L1440,100V100H0Z"
    );
  }
  75% {
    d: path(
      "M0,70L60,60C120,50,240,80,360,70C480,60,600,50,720,60C840,70,960,80,1080,70C1200,60,1320,80,1380,70L1440,60V100H0Z"
    );
  }
  100% {
    d: path(
      "M0,80L60,70C120,60,240,40,360,50C480,60,600,100,720,90C840,80,960,40,1080,30C1200,20,1320,40,1380,50L1440,60V100H0Z"
    );
  }
}
.floatY {
  animation: floatYAnim 4.5s ease-in-out infinite alternate;
}
@keyframes floatYAnim {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-22px);
  }
}
.hero-svg2 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-bubble.small {
  width: 18px;
  height: 18px;
  opacity: 0.1;
  z-index: 1;
  animation:
    heroBubbleMove 10s linear infinite alternate,
    heroBubbleBounce 3s ease-in-out infinite;
}
.hero-bubble.s1 {
  left: 30%;
  top: 12%;
  background: #fdcd15;
  animation-delay: 0.5s;
}
.hero-bubble.s2 {
  left: 70%;
  top: 18%;
  background: #fc980c;
  animation-delay: 1.2s;
}
.hero-bubble.s3 {
  left: 85%;
  top: 60%;
  background: #25872b;
  animation-delay: 2.1s;
}
.hero-bubble.s4 {
  left: 10%;
  top: 65%;
  background: #5cb040;
  animation-delay: 1.7s;
}
.fadeInUp {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpAnim 1.2s cubic-bezier(0.23, 1.01, 0.32, 1) 0.2s forwards;
}
@keyframes fadeInUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de rebote lento para burbujas */
.hero-bubble {
  animation:
    heroBubbleMove 12s linear infinite alternate,
    heroBubbleBounce 4s ease-in-out infinite;
}
@keyframes heroBubbleBounce {
  0%,
  100% {
    filter: blur(0px);
    transform: scale(1);
  }
  50% {
    filter: blur(2px);
    transform: scale(1.08);
  }
}
.hero .hero-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  z-index: 2;
  pointer-events: none;
}
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.13;
  z-index: 1;
  animation: heroBubbleMove 12s linear infinite alternate;
}
.hero-bubble.b1 {
  width: 60px;
  height: 60px;
  left: 12%;
  top: 18%;
  background: radial-gradient(
    circle,
    #fdcd15 0%,
    #fc980c 80%,
    transparent 100%
  );
  animation-delay: 0s;
}
.hero-bubble.b2 {
  width: 40px;
  height: 40px;
  left: 80%;
  top: 30%;
  background: radial-gradient(
    circle,
    #25872b 0%,
    #5cb040 80%,
    transparent 100%
  );
  animation-delay: 2s;
}
.hero-bubble.b3 {
  width: 32px;
  height: 32px;
  left: 60%;
  top: 70%;
  background: radial-gradient(
    circle,
    #fc980c 0%,
    #fdcd15 80%,
    transparent 100%
  );
  animation-delay: 4s;
}
.hero-bubble.b4 {
  width: 48px;
  height: 48px;
  left: 25%;
  top: 80%;
  background: radial-gradient(
    circle,
    #5cb040 0%,
    #25872b 80%,
    transparent 100%
  );
  animation-delay: 1s;
}
@keyframes heroBubbleMove {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-30px) scale(1.15);
  }
}
/* ==========================================
   TEMA EMPRECOLSA S.A.S E.S.P + MAGAZINE LAYOUT
   Unificación de theme.css y template.css
   ========================================== */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=PT+Sans:wght@300;400;500;600;700&display=swap");

:root {
  /* Colores principales del logo */
  --color-primary: #25872b; /* Verde principal del logo */
  --color-primary-light: #5cb040; /* Verde claro del logo */
  --color-primary-dark: #1b5e19; /* Verde oscuro */
  --color-secondary: #fc980c; /* Naranja/amarillo del logo */
  --color-secondary-light: #feb00f; /* Amarillo claro */
  --color-accent: #fdcd15; /* Amarillo brillante */

  /* Colores de soporte */
  --color-success: #26892d;
  --color-info: #5cb040;
  --color-warning: #fc980c;
  --color-danger: #d32f2f;

  /* Grises y neutros */
  --color-text: #2c3e50;
  --color-text-light: #6c757d;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-dark: #e9ecef;
  --color-border: #dee2e6;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(37, 135, 43, 0.1);
  --shadow-md: 0 4px 6px rgba(37, 135, 43, 0.15);
  --shadow-lg: 0 8px 16px rgba(37, 135, 43, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Tipografía */
  --font-primary: "PT Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: "PT Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Espaciados y radios */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition: all 0.3s ease;
}

/* ==========================================
   TIPOGRAFÍA Y BODY
   ========================================== */
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-logo {
  height: 60px;
  width: auto;
  background: white;
  padding: 5px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.navbar-company-info {
  display: flex;
  flex-direction: column;
}

.navbar-company {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-tagline {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.navbar-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

.navbar-menu a,
.navbar-item > a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}

.navbar-menu a:hover,
.navbar-item > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.navbar-item {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.navbar-item:hover .dropdown-content {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background:
    linear-gradient(120deg, #fc980c 0%, #25872b 100%),
    repeating-linear-gradient(
      135deg,
      rgba(252, 152, 12, 0.08) 0 20px,
      transparent 20px 40px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(253, 205, 21, 0.18) 0 120px,
      transparent 120px
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(37, 135, 43, 0.22) 0 140px,
      transparent 140px
    );
  color: #fff;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Formas decorativas animadas */
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle at 60% 40%,
    #fdcd15 0%,
    #fc980c 60%,
    transparent 100%
  );
  opacity: 0.22;
  z-index: 0;
  animation: heroShape1 8s linear infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle at 40% 60%,
    #25872b 0%,
    #5cb040 60%,
    transparent 100%
  );
  opacity: 0.18;
  z-index: 0;
  animation: heroShape2 10s linear infinite alternate;
}
/* Forma extra animada */
.hero .hero-shape3 {
  position: absolute;
  left: 50%;
  top: 80%;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle at 60% 40%,
    #fc980c 0%,
    #fdcd15 80%,
    transparent 100%
  );
  opacity: 0.13;
  border-radius: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  animation: heroShape3 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroShape1 {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.08) rotate(12deg);
  }
}
@keyframes heroShape2 {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(0.95) rotate(-8deg);
  }
}
@keyframes heroShape3 {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.12) translateY(-18px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(
    120deg,
    rgba(37, 135, 43, 0.92) 60%,
    rgba(252, 152, 12, 0.92) 100%
  );
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.13);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* ==========================================
   CARDS Y GRIDS
   ========================================== */
.services-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--color-primary);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: -2rem -2rem 1rem;
}

.card-content {
  padding: 1rem 0;
}

.card-date {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  background: white;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer p {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-slogan {
  color: var(--color-secondary-light);
  font-style: italic;
  font-size: 0.95rem;
}

.footer a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: var(--transition);
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.footer-social a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal,
.footer-regulatory {
  margin-bottom: 1rem;
}

.footer-legal p {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-regulatory p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================
   PÁGINA INTERNA
   ========================================== */
.page-header {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 4rem;
}

.content h2 {
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  font-size: 1.75rem;
}

.content h3 {
  color: var(--color-primary-dark);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.35rem;
}

.content ul,
.content ol {
  margin: 1rem 0 1rem 2rem;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.info-box {
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.info-box.warning {
  border-color: var(--color-secondary);
  background: #fff8e1;
}

.info-box.success {
  border-color: var(--color-success);
  background: #e8f5e9;
}

/* ==========================================
   TABLAS
   ========================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-primary);
  color: white;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:hover {
  background: var(--color-bg-light);
}

/* ==========================================
   FORMULARIOS
   ========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 135, 43, 0.1);
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-accent) 100%
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ==========================================
   UTILIDADES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary);
}
.bg-primary {
  background: var(--color-primary);
}
.bg-light {
  background: #f5f5f5;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--color-primary);
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  .navbar-toggle {
    display: flex;
  }
  .hero {
    height: auto;
    min-height: 400px;
    padding: 80px 20px;
  }
  .hero h1,
  .section-title h2 {
    font-size: 1.75rem;
  }
  .services-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================
   HOME CMS
   ========================================== */
.home-shell {
  background:
    linear-gradient(180deg, #f7faf4 0%, #ffffff 18%, #f5f8f1 100%);
}

.home-section {
  position: relative;
}

.home-hero-section {
  padding: 88px 0 72px;
  text-align: left;
}

.hero-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.hero-carousel-main,
.hero-card,
.service-overview-card,
.gallery-card-refined,
.legal-panel,
.user-card,
.final-cta {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 135, 43, 0.12);
  box-shadow: 0 20px 45px rgba(27, 94, 25, 0.14);
}

.hero-carousel-main {
  padding: 34px;
  border-radius: 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(252, 152, 12, 0.14);
  color: #8d4d00;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 640px;
}

.hero-main-title {
  margin: 0 0 16px;
  color: #184f17;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.hero-main-tagline {
  margin: 0;
  color: #3e5340;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card {
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-card-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  color: #214423;
}

.hero-card-summary strong {
  font-size: 1.05rem;
}

.hero-card-summary span {
  color: #57715a;
  line-height: 1.6;
}

.hero-track {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #d7e7d1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 16, 0.14) 0%, rgba(9, 22, 10, 0.68) 100%);
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #fff;
  display: grid;
  gap: 10px;
}

.hero-slide-label {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-service-title {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hero-slide-link::after {
  content: ">";
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hero-control {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.hero-indicator {
  width: 11px;
  min-width: 11px;
  height: 11px;
  min-height: 11px;
  border-radius: 999px;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(37, 135, 43, 0.22);
}

.hero-indicator.active {
  background: #25872b;
}

.service-overview-grid,
.gallery-grid-refined,
.user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.service-overview-card,
.user-card,
.gallery-card-refined {
  border-radius: 24px;
  overflow: hidden;
}

.service-overview-card {
  padding: 28px;
}

.service-overview-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 135, 43, 0.09);
  color: #1d5e1e;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-overview-card h3,
.user-card h3,
.gallery-copy h3 {
  margin: 0 0 12px;
  color: #184f17;
  font-size: 1.35rem;
}

.service-overview-card p,
.user-card p,
.gallery-copy p,
.legal-panel p {
  margin: 0 0 16px;
  color: #536354;
  line-height: 1.75;
}

.gallery-card-refined {
  display: flex;
  flex-direction: column;
}

.gallery-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #edf5e8 0%, #dcead5 100%);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-copy {
  padding: 20px 22px 22px;
}

.legal-layout {
  max-width: 880px;
  margin: 30px auto 0;
}

.legal-panel {
  border-radius: 28px;
  padding: 34px;
}

.legal-panel__intro {
  font-size: 1.02rem;
}

.legal-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.legal-list li {
  position: relative;
  padding: 0 0 0 24px;
  color: #305232;
  line-height: 1.65;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25872b 0%, #fc980c 100%);
  transform: translateY(-50%);
}

.legal-panel__footer {
  padding-top: 18px;
  border-top: 1px solid rgba(37, 135, 43, 0.12);
}

.user-card {
  padding: 28px;
}

.user-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 135, 43, 0.12) 0%, rgba(252, 152, 12, 0.14) 100%);
  color: #1f6c20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.final-cta {
  border-radius: 32px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(252, 152, 12, 0.95) 0%, rgba(37, 135, 43, 0.95) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

.final-cta__content {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}

.final-cta__content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.final-cta__content p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  line-height: 1.8;
}

.footer-legal-links {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.footer-pqr-button {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero-carousel {
    grid-template-columns: 1fr;
  }

  .hero-track {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .home-hero-section {
    padding: 72px 0 56px;
  }

  .hero-carousel-main,
  .hero-card,
  .legal-panel,
  .user-card,
  .service-overview-card {
    padding: 24px;
  }

  .hero-copy-actions {
    flex-direction: column;
  }

  .hero-copy-actions .btn,
  .final-cta__content .btn {
    width: 100%;
  }

  .hero-track {
    min-height: 320px;
  }

  .hero-slide-content {
    padding: 20px;
  }

  .final-cta__content {
    padding: 30px 22px;
  }
}
@media (max-width: 480px) {
  .navbar-company {
    font-size: 0.9rem;
  }
  .navbar-tagline {
    font-size: 0.75rem;
  }
  .hero {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* === Cards de servicios principales y galería === */
.mejor-distribucion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-height: 340px;
}
.servicio-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(252, 152, 12, 0.18);
}
.servicio-icono {
  font-size: 2.8rem;
  color: #fc980c;
  margin-bottom: 1rem;
}
.servicio-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.servicio-info p {
  margin-bottom: 1rem;
  color: #444;
}
.mejor-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.gallery-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.gallery-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(252, 152, 12, 0.18);
}
.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: filter 0.2s;
}
.gallery-card:hover .gallery-img {
  filter: brightness(0.95) saturate(1.1);
}
@media (max-width: 600px) {
  .mejor-distribucion,
  .mejor-galeria {
    grid-template-columns: 1fr;
  }
  .servicio-card,
  .gallery-card {
    min-height: 180px;
  }
  .gallery-img {
    height: 120px;
  }
}
