/* Archivo CSS unificado de ECOSERVICIOS */

/* ===== template.css ===== */
/**
 * Plantilla: Estilo Blog
 * ID: T08_BLOG_STYLE
 * Tipografía: Playfair Display / Roboto
 * Hero: featured_post
 */

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

/* ============================================
   TOKENS DE COLOR
   ============================================ */
:root {
  --color-primary: #673ab7;
  --color-secondary: #455a64;
  --color-accent: #ff4081;

  --color-primary-light: #673ab720;
  --color-primary-dark: #455a64;

  --font-primary: "Playfair Display", sans-serif;
  --font-secondary: "Roboto", sans-serif;

  --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;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
}

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 - centered_logo
   ============================================ */

.navbar {
  background: #8b2a00 !important;
  box-shadow: 0 4px 18px rgba(100, 20, 0, 0.35) !important;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ============================================
   HERO - featured_post
   ============================================ */

.hero {
  background: var(--color-primary);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

/* ============================================
   CARDS - blog_cards
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.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);
}

/* ============================================
   NOTICIAS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-secondary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
  transition: all 0.3s ease;
}

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

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

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

.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;
}

.ecoservicios-contact-card {
  margin-bottom: 2rem;
}

.ecoservicios-contact-card__intro {
  margin-bottom: 1.5rem;
}

.ecoservicios-contact-form {
  display: grid;
  gap: 1.5rem;
}

.ecoservicios-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ecoservicios-contact-form__group {
  display: grid;
  gap: 0.65rem;
}

.ecoservicios-contact-form__label {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: #1f2937;
}

.ecoservicios-contact-form__control {
  width: 100%;
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ecoservicios-contact-form__control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.14);
}

.ecoservicios-contact-form textarea.ecoservicios-contact-form__control {
  min-height: 160px;
  resize: vertical;
}

.ecoservicios-contact-form__actions {
  display: flex;
  justify-content: flex-start;
}

.btn-disabled {
  opacity: 0.75;
  cursor: wait;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.contact-modal__dialog {
  position: relative;
  max-width: 420px;
  width: min(calc(100vw - 2rem), 420px);
  margin: min(12vh, 6rem) auto 0;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 2rem;
}

.contact-modal.is-error .contact-modal__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.contact-modal.is-loading .contact-modal__icon {
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
}

.contact-modal__title {
  margin-bottom: 0.5rem;
}

.contact-modal__message {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.contact-modal__button {
  min-width: 160px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 400px;
  }

  .hero.split-content {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .ecoservicios-contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-modal__dialog {
    margin-top: 10vh;
    padding: 1.75rem 1.25rem 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   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);
}

/* ===== theme.css ===== */
/* ========================================
   SISTEMA DE DISEÑO - ECOSERVICIOS AMBIENTALES
   Paleta de colores extraída del logo
   ======================================== */

:root {
  /* Colores principales del logo */
  --color-primary: #ff6b35; /* Naranja principal */
  --color-primary-light: #ff8c5a; /* Naranja claro */
  --color-primary-dark: #e65100; /* Naranja oscuro */

  --color-secondary: #ffb700; /* Amarillo/Dorado */
  --color-secondary-light: #ffc947;
  --color-secondary-dark: #f57f17;

  --color-accent: #ff9500; /* Naranja brillante */
  --color-accent-light: #ffb84d;
  --color-accent-dark: #e67e00;

  /* Colores complementarios */
  --color-earth: #8d6e63; /* Marrón tierra */
  --color-sky: #4fc3f7; /* Azul cielo */

  /* Grises */
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #eeeeee;
  --color-gray-300: #e0e0e0;
  --color-gray-400: #bdbdbd;
  --color-gray-500: #9e9e9e;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;

  /* Colores semánticos */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-error: #f44336;
  --color-info: #2196f3;

  /* Fondo y texto */
  --color-background: #ffffff;
  --color-surface: var(--color-gray-50);
  --color-text-primary: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-600);
  --color-text-on-primary: #ffffff;

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Tipografía */
  --font-family-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ========================================
   NAVBAR / HEADER
   ======================================== */

.navbar {
  background: #8b2a00 !important;
  box-shadow: 0 4px 20px rgba(100, 20, 0, 0.4) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  border-bottom: 3px solid rgba(255, 255, 255, 0.12);
}

.navbar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  gap: var(--spacing-lg);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
}

.navbar-logo {
  height: 80px;
  width: auto;
  transition: transform var(--transition-base);
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar-company {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.navbar-subtitle {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.navbar-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  align-items: center;
  width: 100%;
}

.navbar-menu > a,
.navbar-item > a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.navbar-menu > a::after,
.navbar-item > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: #ffffff;
  transition: transform var(--transition-base);
}

.navbar-menu > a:hover,
.navbar-item > a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.navbar-menu > a:hover::after,
.navbar-item > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-item {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--color-background);
  box-shadow: var(--shadow-xl);
  border-radius: var(--border-radius-lg);
  min-width: 240px;
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-xs);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
}

.navbar-item:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.navbar-item.open .dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.dropdown a {
  display: block;
  padding: var(--spacing-md) var(--spacing-xl);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dropdown a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-left-color: var(--color-primary);
  padding-left: calc(var(--spacing-xl) + 4px);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.navbar-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-base);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  --footer-bg: linear-gradient(135deg, #7b2d00 0%, #b94700 100%);
  --footer-surface: rgba(255, 255, 255, 0.08);
  --footer-surface-strong: rgba(255, 255, 255, 0.14);
  --footer-border: rgba(255, 255, 255, 0.18);
  --footer-link: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.76);
  --footer-accent: #ffd166;
  background: var(--footer-bg);
  color: var(--color-text-on-primary);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-3xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -18px 42px rgba(76, 27, 0, 0.2);
}

.footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(255, 209, 102, 0.2) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(170px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  align-items: start;
}

.footer-column {
  min-width: 0;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo-wrap {
  width: 116px;
  height: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  border-radius: 28px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--footer-border);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.footer-logo {
  height: 86px;
  width: auto;
}

.footer-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-accent);
  margin-bottom: var(--spacing-sm);
}

.footer-company {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--spacing-sm);
}

.footer-nit {
  font-size: var(--font-size-sm);
  color: var(--footer-link);
  margin-bottom: var(--spacing-md);
}

.footer-text {
  font-size: 0.98rem;
  color: var(--footer-muted);
  line-height: 1.7;
}

.footer-column h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  color: var(--color-text-on-primary);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.9rem;
}

.footer-column a {
  color: var(--footer-link);
  text-decoration: none;
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--color-text-on-primary);
  transform: translateX(3px);
}

.footer-contact-list {
  display: grid;
  gap: var(--spacing-md);
}

.footer-contact-item {
  padding: var(--spacing-md);
  border-radius: 18px;
  background: var(--footer-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.footer-contact-value,
.footer-contact-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--footer-link);
}

.footer-legal {
  border-top: 1px solid var(--footer-border);
  padding-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-legal-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer-legal-content p {
  margin: 0;
}

.footer-legal-title,
.footer-legal-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--footer-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-title {
  color: var(--footer-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.footer-legal-text {
  flex: 1 1 340px;
  color: var(--footer-muted);
}

.footer-legal-note {
  color: var(--footer-link);
}

.footer-bottom {
  text-align: left;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.68);
}

/* ========================================
   OPERACION POR MUNICIPIOS
   ======================================== */

.hero--operation {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 232, 173, 0.18),
      transparent 22%
    ),
    linear-gradient(135deg, #7b2d00 0%, #b94700 55%, #d86409 100%);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  padding: 0.45rem 0.9rem;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operation-header {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  align-items: end;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  color: var(--color-text-secondary);
  max-width: 720px;
}

.operation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.operation-filter {
  border: 1px solid rgba(123, 45, 0, 0.16);
  background: white;
  color: var(--color-primary-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.operation-filter.is-active,
.operation-filter:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.operation-municipios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.operation-municipio-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-primary);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.operation-municipio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(123, 45, 0, 0.14);
}

.operation-municipio-card .btn {
  margin-top: auto;
}

.operation-service-card,
.operation-stat {
  height: 100%;
}

.operation-municipio-media {
  margin: calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md))
    var(--spacing-md);
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  overflow: hidden;
  background: var(--color-gray-100);
  height: 120px;
}

.operation-municipio-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.85;
  animation: imgFloat 6s ease-in-out infinite alternate;
}

@keyframes imgFloat {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.operation-badge {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--border-radius-full);
  background: rgba(230, 81, 0, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operation-region {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.operation-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
}

.operation-chip {
  padding: 0.3rem 0.65rem;
  border-radius: var(--border-radius-full);
  background: var(--color-gray-100);
  border: 1px solid rgba(123, 45, 0, 0.1);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.operation-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.operation-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.operation-stat-number {
  margin: 0 0 var(--spacing-sm);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.operation-highlight {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-primary);
  background: var(--color-gray-50);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.operation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.operation-gallery-card {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
}

.operation-gallery-media {
  min-height: 160px;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: var(--spacing-lg);
  color: white;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)),
    linear-gradient(135deg, #ff8c5a 0%, #b94700 100%);
}

.operation-gallery-media--image {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: var(--color-gray-100);
}

.operation-gallery-media--image img {
  width: 100%;
  min-height: 160px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.operation-gallery-copy {
  padding: var(--spacing-lg);
}

.operation-gallery-copy h3 {
  margin-bottom: 0.5rem;
}

.footer--corporate {
  --footer-bg: linear-gradient(135deg, #722400 0%, #a63e00 60%, #c45100 100%);
  --footer-surface: rgba(255, 255, 255, 0.07);
  --footer-accent: #ffd37a;
}

.footer--modern {
  --footer-bg:
    radial-gradient(
      circle at top left,
      rgba(255, 215, 130, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, #321100 0%, #6e2800 50%, #a23d00 100%);
  --footer-surface: rgba(255, 255, 255, 0.1);
  --footer-surface-strong: rgba(255, 255, 255, 0.16);
  --footer-border: rgba(255, 255, 255, 0.14);
  --footer-accent: #ffe29a;
}

.footer--modern .footer-column:not(.footer-brand) {
  padding: var(--spacing-lg);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.footer--modern .footer-contact-item,
.footer--modern .footer-legal-title,
.footer--modern .footer-legal-note {
  background: var(--footer-surface-strong);
}

.footer--compact {
  --footer-bg: linear-gradient(180deg, #4a1700 0%, #7b2b00 100%);
  --footer-surface: rgba(255, 255, 255, 0.05);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-accent: #ffc36b;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer--compact .footer-grid {
  gap: var(--spacing-xl);
}

.footer--compact .footer-column h3 {
  margin-bottom: var(--spacing-md);
}

.footer--compact .footer-company {
  font-size: 1.45rem;
}

.footer--compact .footer-logo-wrap {
  width: 96px;
  height: 96px;
  margin-bottom: var(--spacing-md);
}

.footer--compact .footer-links li {
  margin-bottom: 0.7rem;
}

.footer--compact .footer-contact-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.footer--compact .footer-legal-content {
  display: block;
}

.footer--compact .footer-legal-title,
.footer--compact .footer-legal-note {
  display: inline-flex;
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 900px) {
  .operation-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer-company {
    font-size: 1.5rem;
  }

  .footer-legal-content {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .operation-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .operation-filter {
    width: 100%;
  }

  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-logo-wrap {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .footer-logo {
    height: 68px;
  }

  .footer-company {
    font-size: 1.35rem;
  }

  .footer-contact-item,
  .footer--modern .footer-column:not(.footer-brand) {
    padding: var(--spacing-md);
  }

  .footer-legal-title,
  .footer-legal-note {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

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

.hero {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 50%,
    var(--color-accent) 100%
  );
  color: var(--color-text-on-primary);
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.hero h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: var(--font-size-xl);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ========================================
   CARDS Y COMPONENTES
   ======================================== */

.card {
  background: var(--color-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: var(--color-primary-dark);
}

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

/* ========================================
   BOTONES
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

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

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text-on-primary);
}

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

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

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

/* ========================================
   GRIDS Y LAYOUTS
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.section-title {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========================================
   TABLAS
   ======================================== */

.table-container {
  overflow-x: auto;
  margin: var(--spacing-xl) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-background);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
}

td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-gray-200);
}

tbody tr:hover {
  background: var(--color-gray-50);
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   ALERTAS
   ======================================== */

.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid var(--color-success);
}

.alert-warning {
  background: #fff3e0;
  color: #e65100;
  border-left: 4px solid var(--color-warning);
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid var(--color-error);
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid var(--color-info);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
  .navbar .container {
    position: relative;
  }

  .navbar-brand {
    width: 100%;
  }

  .navbar-logo {
    height: 60px;
  }

  .navbar-company {
    font-size: var(--font-size-xl);
  }

  .navbar-subtitle {
    font-size: var(--font-size-sm);
  }

  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: var(--spacing-3xl) var(--spacing-xl);
    justify-content: center;
    gap: var(--spacing-md);
    animation: fadeIn 0.3s ease;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu > a,
  .navbar-item > a {
    color: white;
    font-size: var(--font-size-xl);
    padding: var(--spacing-md);
    text-align: center;
  }

  .navbar-item {
    width: 100%;
  }

  .dropdown {
    display: none;
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-item.open .dropdown {
    transform: none;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
  }

  .navbar-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: var(--spacing-lg);
    transform: translateY(-50%);
  }

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .hero p {
    font-size: var(--font-size-lg);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  border: none;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ========================================
   NAVBAR TOGGLE ANIMATION
   ======================================== */

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ===== modern.css ===== */
/**
 * ECOSERVICIOS AMBIENTALES S.A.S
 * Estilos Adicionales y Mejoras Modernas
 */

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md);
  z-index: 10000;
  text-decoration: none;
}

.skip-to-main:focus {
  top: 0;
}

/* ========================================
   OPTIMIZACIONES DE RENDIMIENTO
   ======================================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   ANIMACIONES AVANZADAS
   ======================================== */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ========================================
   EFECTOS HOVER AVANZADOS PARA ENLACES
   ======================================== */

a[href^="pages/"]:not(.btn) {
  position: relative;
  transition: color var(--transition-base);
}

/* ========================================
   MEJORAS PARA IMPRESIÓN
   ======================================== */

@media print {
  .navbar,
  .navbar-toggle,
  .back-to-top,
  .footer {
    display: none !important;
  }

  .hero {
    page-break-after: avoid;
  }

  .card {
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}

/* ========================================
   PREFERS REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   DARK MODE SUPPORT (preparado para futuro)
   ======================================== */

@media (prefers-color-scheme: dark) {
  /* Solo activar paleta oscura cuando la clase se habilite de forma explícita */
  body.dark-mode-enabled {
    --color-background: #1a1a1a;
    --color-surface: #2a2a2a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
    background: var(--color-background);
    color: var(--color-text-primary);
  }

  .dark-mode-enabled .card {
    background: var(--color-surface);
    border-color: #3a3a3a;
  }

  .dark-mode-enabled .navbar {
    background: #8b2a00 !important;
  }
}

/* ========================================
   EFECTOS DE GLASSMORPHISM
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   GRADIENTES ANIMADOS
   ======================================== */

.gradient-animated {
  background: linear-gradient(
    -45deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent),
    var(--color-primary-light)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ========================================
   MEJORAS PARA TABLETS
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-logo {
    height: 70px;
  }

  .navbar-company {
    font-size: var(--font-size-xl);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   MEJORAS PARA PANTALLAS GRANDES
   ======================================== */

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.5rem;
  }
}

/* ========================================
   ESTADOS INTERACTIVOS MEJORADOS
   ======================================== */

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

input:invalid {
  border-color: var(--color-error);
}

input:valid {
  border-color: var(--color-success);
}

/* ========================================
   LOADING INDICATORS
   ======================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(46, 125, 50, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   TOOLTIPS
   ======================================== */

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-900);
  color: white;
  font-size: var(--font-size-sm);
  white-space: nowrap;
  border-radius: var(--border-radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  margin-bottom: 5px;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ========================================
   SKELETON LOADING
   ======================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-200) 25%,
    var(--color-gray-100) 50%,
    var(--color-gray-200) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  to {
    background-position: -200% 0;
  }
}

/* ========================================
   BLOQUE LEGAL Y COBERTURA
   ======================================== */

.legal-trust-banner {
  padding-top: 1.5rem;
}

.legal-trust-card {
  border-left: 5px solid var(--color-primary);
}

.legal-trust-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.25rem;
  align-items: stretch;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
}

.legal-coverage-box {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-md);
  padding: 1rem;
}

@media (max-width: 968px) {
  .legal-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== animations.css ===== */
/* ============================================
   PRELOADER / PANTALLA DE CARGA
   ============================================ */

/* Ocultar contenido mientras carga */
body.loading {
  overflow: hidden;
}

body.loading main,
body.loading nav,
body.loading footer {
  opacity: 0;
  visibility: hidden;
  transition: none; /* Sin transición mientras está oculto */
}

/* Transición suave cuando aparece el contenido */
main,
nav,
footer {
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.loader-container {
  text-align: center;
  color: #2e7d32;
}

.logo-loader {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

.circular-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 8;
}

.progress-bar {
  fill: none;
  stroke: #2e7d32;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  animation: progressCircle 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressCircle {
  0% {
    stroke-dashoffset: 565.48;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: auto;
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.loader-message {
  font-size: 1rem;
  font-weight: 500;
  color: #4caf50;
  min-height: 25px;
}

/* ============================================
   ANIMACIONES DE SCROLL - DESACTIVADAS
   Las animaciones de aparición están desactivadas para evitar
   que el contenido parezca vacío al cargar la página
   ============================================ */
.animate-on-scroll {
  /* opacity: 0; - DESACTIVADO */
  /* transform: translateY(50px); - DESACTIVADO */
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  /* opacity: 0; - DESACTIVADO */
  opacity: 1;
  transition: opacity 1s ease;
}

.animate-fade-in.animated {
  opacity: 1;
}

.animate-slide-left {
  /* opacity: 0; - DESACTIVADO */
  /* transform: translateX(-100px); - DESACTIVADO */
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  /* opacity: 0; - DESACTIVADO */
  /* transform: translateX(100px); - DESACTIVADO */
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  /* opacity: 0; - DESACTIVADO */
  /* transform: scale(0.8); - DESACTIVADO */
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

.animate-rotate {
  /* opacity: 0; - DESACTIVADO */
  /* transform: rotate(-10deg) scale(0.8); - DESACTIVADO */
  opacity: 1;
  transform: rotate(0) scale(1);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-rotate.animated {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ============================================
   EFECTOS HOVER MEJORADOS
   ============================================ */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   BOTONES ANIMADOS
   ============================================ */
button,
.btn,
a.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

button::after,
.btn::after,
a.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

button:hover::after,
.btn:hover::after,
a.btn:hover::after {
  width: 300px;
  height: 300px;
}

button:hover,
.btn:hover,
a.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   EFECTOS DE PARALLAX
   ============================================ */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* ============================================
   NAVBAR SCROLL EFFECT
   ============================================ */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #8b2a00 !important;
  box-shadow: 0 4px 20px rgba(100, 20, 0, 0.5) !important;
  padding: 0.5rem 0;
}

.navbar.scrolled .navbar-logo {
  height: 50px;
}

/* ============================================
   ANIMACIONES DE CONTADOR
   ============================================ */
.counter {
  font-size: 3rem;
  font-weight: bold;
  color: #ff6b35;
  display: inline-block;
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

/* ============================================
   SHAKE ANIMATION
   ============================================ */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake:hover {
  animation: shake 0.5s;
}

/* ============================================
   GRADIENT ANIMATION
   ============================================ */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

/* ============================================
   TEXTO TYPEWRITER
   ============================================ */
.typewriter {
  overflow: hidden;
  border-right: 3px solid;
  white-space: nowrap;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: currentColor;
  }
}

/* ============================================
   ICONOS ANIMADOS
   ============================================ */
.icon-bounce {
  display: inline-block;
  transition: transform 0.3s ease;
}

.icon-bounce:hover {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* ============================================
   ANIMACIÓN DE CÍRCULO EXPANDIBLE
   ============================================ */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
  to {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/* ============================================
   IMAGEN CON ZOOM
   ============================================ */
.zoom-image {
  overflow: hidden;
  border-radius: 12px;
}

.zoom-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-image:hover img {
  transform: scale(1.15);
}

/* ============================================
   TEXTO CON SUBRAYADO ANIMADO
   ============================================ */
.underline-animated {
  position: relative;
  display: inline-block;
}

.underline-animated::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: currentColor;
  transition: width 0.3s ease;
}

.underline-animated:hover::after {
  width: 100%;
}

/* ============================================
   SOMBRA ANIMADA EN TARJETAS
   ============================================ */
.shadow-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.shadow-lift:hover {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.15),
    0 10px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* ============================================
   DELAY CLASSES PARA ANIMACIONES SECUENCIALES
   ============================================ */
.delay-1 {
  animation-delay: 0.1s;
  transition-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
  transition-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
  transition-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
  transition-delay: 0.5s;
}

/* ============================================
   NÚMEROS DESTACADOS ANIMADOS
   ============================================ */
.stat-number {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff6b35, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: stat-glow 2s ease-in-out infinite;
}

@keyframes stat-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */
@media (max-width: 768px) {
  .animate-on-scroll,
  .animate-slide-left,
  .animate-slide-right {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }

  .card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

/* ============================================
   SCROLL SMOOTH
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   BACK TO TOP BUTTON ANIMADO
   ============================================ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35, #ffb700);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
  }
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

#backToTop.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== responsive.css ===== */
/*
 * Ajustes responsive adicionales
 * Este archivo evita rutas rotas y centraliza mejoras de adaptación.
 */

/* Tablets */
@media (max-width: 1024px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }

  .hero p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
  }
}

/* Móviles */
@media (max-width: 768px) {
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .card {
    padding: 1.25rem;
  }
}
