/*
Theme Name: EnviroClean
Theme URI: https://enviroclean.ec
Author: EnviroClean
Author URI: https://enviroclean.ec
Description: Tema corporativo para EnviroClean - Soluciones Químicas Sostenibles para la industria ecuatoriana.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enviroclean
Tags: one-page, corporate, dark, custom-colors, custom-logo, custom-menu
*/

/* ================================================
   VARIABLES
   ================================================ */
:root {
  --brand-green:     #00C885;
  --brand-dark:      #011625;
  --brand-card:      #02223c;
  --brand-blue-dark: #011c2f;
  --brand-border:    rgba(0, 200, 133, 0.15);
  --font-sans:       'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;
  --header-height:   80px;
  --transition:      0.3s ease;
  --radius:          12px;
  --radius-sm:       8px;
  --max-width:       1280px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--brand-dark);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ================================================
   UTILITIES
   ================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 6rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-green);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #00b578;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 133, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Highlight */
.highlight { color: var(--brand-green); }

/* ================================================
   TOAST NOTIFICATION
   ================================================ */
.ec-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-140px);
  background-color: var(--brand-card);
  border: 1px solid var(--brand-green);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

.ec-toast.show {
  transform: translateX(-50%) translateY(0);
}

.ec-toast svg {
  color: var(--brand-green);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ================================================
   FLOATING WIDGETS
   ================================================ */
.floating-widgets {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* WhatsApp drawer */
.wa-drawer {
  background-color: var(--brand-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.125rem;
  width: 272px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 0.625rem;
}

.wa-drawer.open { display: flex; }

.wa-drawer-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.wa-drawer textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: white;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  resize: none;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.wa-drawer textarea:focus { border-color: var(--brand-green); }

.wa-send-btn {
  background-color: #25D366;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition);
}

.wa-send-btn:hover { background-color: #1fb855; }

/* WhatsApp toggle button */
.wa-toggle-btn {
  width: 52px;
  height: 52px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: bounce 2.2s ease-in-out infinite;
  cursor: pointer;
}

.wa-toggle-btn:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

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

/* Copy link button */
.copy-link-btn {
  width: 44px;
  height: 44px;
  background-color: rgba(1, 22, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.copy-link-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  transform: scale(1.1);
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background-color: rgba(1, 22, 37, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 200, 133, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-green) 0%, #00b578 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo .logo-icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand-dark);
}

.site-logo img.custom-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-enviro { color: var(--brand-green); }

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav ul li a,
.main-nav > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 9999px;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav > a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.06);
}

.main-nav ul li.current-menu-item > a {
  color: var(--brand-green);
}

/* Nav CTA button */
.nav-cta,
.main-nav ul li.nav-cta a,
.main-nav ul li.menu-item-cta > a {
  background-color: var(--brand-green) !important;
  color: var(--brand-dark) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 9999px !important;
  margin-left: 0.5rem;
}

.nav-cta:hover,
.main-nav ul li.nav-cta a:hover,
.main-nav ul li.menu-item-cta > a:hover {
  background-color: #00b578 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 200, 133, 0.3) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: rgba(1, 22, 37, 0.98);
  backdrop-filter: blur(16px);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(0, 200, 133, 0.2);
  z-index: 499;
}

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

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav ul li a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-nav ul li a:hover {
  background-color: rgba(0, 200, 133, 0.08);
  color: var(--brand-green);
}

.mobile-nav .mobile-cta {
  margin-top: 0.5rem;
  background-color: var(--brand-green);
  color: var(--brand-dark);
  font-weight: 700;
  text-align: center;
  padding: 0.875rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
}

.mobile-nav .mobile-cta:hover { background-color: #00b578; }

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 22, 37, 0.55) 0%,
    rgba(1, 22, 37, 0.45) 40%,
    rgba(1, 22, 37, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  padding: 0 1.5rem;
  animation: fadeInUp 0.9s ease forwards;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 200, 133, 0.12);
  border: 1px solid rgba(0, 200, 133, 0.3);
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7) translateY(-4px); }
  50%       { opacity: 1;   transform: scaleY(1)   translateY(0); }
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
  background-color: var(--brand-dark);
  padding: 6rem 0;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.about-card {
  background-color: var(--brand-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.about-card:hover {
  border-color: rgba(0, 200, 133, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 200, 133, 0.15), rgba(0, 200, 133, 0.05));
  border: 1px solid rgba(0, 200, 133, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-green);
}

.about-card-icon svg { width: 28px; height: 28px; }

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

.about-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
}

a.about-card-tag:hover {
  text-decoration: underline;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
  background-color: var(--brand-blue-dark);
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.service-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

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

.service-card:hover img { transform: scale(1.08); }

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1, 22, 37, 0.95) 0%,
    rgba(1, 22, 37, 0.35) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background var(--transition);
}

.service-card:hover .service-overlay {
  background: linear-gradient(
    to top,
    rgba(1, 22, 37, 0.98) 0%,
    rgba(1, 22, 37, 0.65) 55%,
    rgba(0, 200, 133, 0.04) 100%
  );
}

.service-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 200, 133, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.service-icon svg { width: 18px; height: 18px; }

.service-card:hover .service-icon {
  opacity: 1;
  transform: translateY(0);
}

.service-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.service-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.service-card:hover .service-sub { color: var(--brand-green); }

/* ================================================
   STATS SECTION
   ================================================ */
.stats-section {
  background-color: var(--brand-dark);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 200, 133, 0.1);
  border-bottom: 1px solid rgba(0, 200, 133, 0.1);
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background-color: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 200, 133, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0, 200, 133, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1;
}

.stat-unit {
  font-size: 1.25rem;
  font-weight: 700;
  margin-left: 0.2rem;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.625rem;
  line-height: 1.5;
}

/* ================================================
   PRODUCTS SECTION
   ================================================ */
.products-section {
  background-color: var(--brand-blue-dark);
  padding: 6rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.product-main-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.product-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-main-card:hover img { transform: scale(1.04); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 22, 37, 0.96) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.product-tag {
  display: inline-block;
  background-color: var(--brand-green);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.product-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.products-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.product-sub-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.product-sub-card.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.product-sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-sub-card:hover img { transform: scale(1.06); }

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
  background-color: var(--brand-blue-dark);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.375rem;
}

.form-group label .req { color: var(--brand-green); }

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.28); }
.form-control:focus { border-color: var(--brand-green); }

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

input[type="file"].form-control {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: white;
  padding: 0.4rem 0.75rem;
  margin-right: 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Honeypot anti-spam: oculto visualmente pero presente en el DOM
   (los bots que ignoran display:none suelen rellenar estos campos) */
.ec-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Google reCAPTCHA */
.ec-recaptcha-wrap { margin-bottom: 1rem; }

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

/* Submit */
.submit-btn {
  width: 100%;
  background-color: var(--brand-green);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.submit-btn:hover:not(:disabled) { background-color: #00b578; }

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Form success */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background-color: rgba(0, 200, 133, 0.07);
  border: 1px solid rgba(0, 200, 133, 0.2);
  border-radius: var(--radius);
  animation: fadeInUp 0.4s ease;
}

.form-success.show { display: flex; }

.form-success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(0, 200, 133, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}

.form-success-icon svg { width: 32px; height: 32px; }

/* Map side */
.contact-map-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ecuador-map-wrap {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Contenedor con proporción fija (310:350) — mantiene alineados los pines
   animados sobre el mapa predeterminado o sobre la imagen subida por el admin. */
.ecuador-map-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 310 / 350;
  margin: 0 auto;
}

.ecuador-map-svg,
.ecuador-map-img,
.ecuador-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ecuador-map-img {
  object-fit: contain;
}

.ecuador-map-overlay {
  pointer-events: none;
}

.map-pin-link {
  pointer-events: auto;
  cursor: pointer;
}

.map-pulse {
  animation: mapPulse 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes mapPulse {
  0%, 100% { opacity: 1;   r: 10; }
  50%       { opacity: 0.4; r: 16; }
}

.location-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-green);
  box-shadow: 0 0 8px rgba(0, 200, 133, 0.55);
  flex-shrink: 0;
}

/* Contact info */
.contact-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-green);
  flex-shrink: 0;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background-color: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-green), #00b578);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--brand-dark);
}

.footer-logo img.custom-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  transform: translateY(-2px);
}

.footer-social svg { width: 16px; height: 16px; }

/* ================================================
   PDF MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background-color: var(--brand-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: all var(--transition);
  cursor: pointer;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-close svg { width: 18px; height: 18px; }

.modal-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(0, 200, 133, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 1.25rem;
}

.modal-icon svg { width: 28px; height: 28px; }

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.modal-form { display: flex; flex-direction: column; gap: 0.75rem; }

.modal-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.modal-success.show { display: flex; }

/* ================================================
   GALLERY LIGHTBOX
   ================================================ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.96);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-lightbox.open { display: flex; }

.gallery-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1080px;
  width: 100%;
  position: relative;
}

.gallery-img-wrap {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 75vh;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 75vh;
}

.gallery-panel {
  width: 260px;
  flex-shrink: 0;
}

.gallery-panel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gallery-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gallery-panel-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.gallery-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.gallery-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-close:hover { background-color: rgba(255, 255, 255, 0.2); }
.gallery-close svg { width: 18px; height: 18px; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-green);
}

.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: -3.5rem; }
.gallery-nav.next { right: -3.5rem; }

/* ================================================
   SCROLL FADE-IN ANIMATIONS
   ================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }
.fade-in-up.delay-5 { transition-delay: 0.5s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
  .gallery-nav.prev { left: -2.5rem; }
  .gallery-nav.next { right: -2.5rem; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .gallery-inner { flex-direction: column; }
  .gallery-panel { width: 100%; }
  .gallery-nav.prev { left: 0.5rem; }
  .gallery-nav.next { right: 0.5rem; }
  .gallery-close { top: -3rem; }
}

@media (max-width: 768px) {
  .section-padding { padding: 4rem 0; }

  .main-nav  { display: none; }
  .hamburger { display: flex; }

  .about-grid         { grid-template-columns: 1fr; }
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .products-grid      { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid          { grid-template-columns: 1fr; }
  .stats-grid             { grid-template-columns: 1fr; }
  .products-right-grid    { grid-template-columns: 1fr; }
  .product-sub-card.wide  { aspect-ratio: 16 / 7; grid-column: 1; }
}

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

/* --- TABLET (769px – 1024px) --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {

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

  .about-section,
  .services-section,
  .products-section,
  .contact-section { padding: 5rem 0; }

  .stats-section  { padding: 4rem 0; }
  .contact-grid   { gap: 2rem; }
}

/* --- MOBILE SUPPLEMENTS (≤ 768px) --- */
@media screen and (max-width: 768px) {

  /* Secciones con padding propio (no usan .section-padding) */
  .about-section,
  .services-section,
  .stats-section,
  .products-section,
  .contact-section { padding: 3.5rem 0; }

  /* Números de stats más compactos */
  .stat-number { font-size: 2rem; }

  /* WhatsApp drawer no desborda la pantalla */
  .wa-drawer { width: min(272px, calc(100vw - 3rem)); }

  /* Widgets flotantes más pegados al borde */
  .floating-widgets { bottom: 1rem; right: 1rem; }

  /* Indicador de scroll ocupa espacio valioso en móvil */
  .scroll-indicator { display: none; }

  /* Modal con menos padding en pantallas chicas */
  .modal-box { padding: 1.75rem; }

  /* Toast no desborda en pantallas angostas */
  .ec-toast {
    white-space: normal;
    text-align: center;
    max-width: calc(100vw - 3rem);
  }

  /* Galería lightbox: nav reposicionada dentro del área visible */
  .gallery-nav.prev { left: 0.25rem; }
  .gallery-nav.next { right: 0.25rem; }
}

/* --- MÓVIL PEQUEÑO (≤ 480px) --- */
@media screen and (max-width: 480px) {

  /* Botones del hero a ancho completo */
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Widgets flotantes */
  .floating-widgets { bottom: 0.75rem; right: 0.75rem; }
  .wa-toggle-btn    { width: 46px; height: 46px; }
  .copy-link-btn    { width: 40px; height: 40px; }

  /* Stats aún más compactos */
  .stat-number { font-size: 1.75rem; }

  /* Leyenda del mapa con menos gap */
  .location-legend { gap: 0.75rem; }
}

/* ===== HEADER & HERO — POLISH MÓVIL ===== */

/* Botones del hero: ancho completo + altura táctil en TODOS los móviles */
@media screen and (max-width: 768px) {
  .hero-buttons { align-items: stretch; }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    justify-content: center;
    min-height: 52px;
  }
}

/* Teléfonos muy pequeños (≤ 380px) */
@media screen and (max-width: 380px) {
  .hero-title { font-size: 1.75rem; }

  .site-logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .site-logo .logo-icon {
    width: 32px;
    height: 32px;
  }
}

/* =========================================== */
/* LOGO — OVERFLOW FIX                         */
/* =========================================== */

/* El enlace generado por the_custom_logo() necesita layout de flex
   para que la imagen quede centrada verticalmente en el header */
.site-logo .custom-logo-link,
.footer-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

/* La imagen nunca debe sobrepasar su contenedor */
.site-logo img.custom-logo,
.site-logo .custom-logo-link img,
.footer-logo img.custom-logo,
.footer-logo .custom-logo-link img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* =========================================== */
/* AJUSTE 1: HEADER CON FONDO EN MÓVIL/TABLET */
/* =========================================== */

/* Móvil y tablet hasta 1024px: fondo sólido siempre visible.
   Los textos y el ícono hamburguesa son blancos por defecto,
   por lo que se ven correctamente sobre #012640. */
@media screen and (max-width: 1024px) {
  .site-header {
    background-color: #012640;
  }
}

/* =========================================== */
/* AJUSTE 2: BOTONES HERO PROPORCIONADOS       */
/* =========================================== */

/* Tablet (769px–1024px): fila horizontal, tamaño mediano */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: auto;
  }
}

/* Móvil (≤768px): apilados verticalmente, ancho automático.
   Neutraliza el 'align-items: stretch' de la sesión anterior. */
@media screen and (max-width: 768px) {
  .hero-buttons {
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: auto;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Móvil pequeño (≤480px): botones más compactos.
   Neutraliza el 'width: 100%' de la sesión anterior. */
@media screen and (max-width: 480px) {
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }
}

/* =========================================== */
/* SEPARACIÓN HEADER — HERO EN MÓVIL/TABLET   */
/* =========================================== */

/* El header es position:fixed con height:80px (--header-height).
   En desktop el header es transparente → no hay sobreposición visible.
   En móvil/tablet tiene fondo sólido (#012640), por lo que el contenido
   del hero quedaría parcialmente oculto detrás del header sin esta regla.

   Solo se agrega padding-top al hero-section (no margin-top), porque
   hero-bg es position:absolute inset:0 y la imagen de fondo seguirá
   cubriendo el área completa, incluida la zona del header, sin huecos. */

@media screen and (max-width: 1024px) {
  .hero-section {
    padding-top: var(--header-height); /* 80px = altura del header fijo */
  }
}

/* =========================================== */
/* TARJETAS PLEGABLES EN MÓVIL                */
/* =========================================== */

@media screen and (max-width: 768px) {

  /* ── About cards ── */
  .about-card {
    cursor: pointer;
    user-select: none;
    position: relative;
  }

  /* Desactivar el hover-lift en táctil para que no "salte" la tarjeta */
  .about-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Flecha de toggle (superior derecha de cada tarjeta) */
  .about-card::after {
    content: '▼';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.6rem;
    color: var(--brand-green);
    opacity: 0.65;
    transition: transform 0.3s ease;
    pointer-events: none;
  }

  .about-card.active::after {
    transform: rotate(180deg);
  }

  /* Ocultar descripción y etiqueta por defecto */
  .about-card > p,
  .about-card .about-card-tag {
    display: none;
  }

  /* El h3 queda pegado al icono cuando está colapsado */
  .about-card h3 { margin-bottom: 0; }

  /* Mostrar al activar */
  .about-card.active > p {
    display: block;
    margin-top: 0.875rem;
    margin-bottom: 0;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-card.active .about-card-tag {
    display: inline-flex;
    margin-top: 1rem;
  }

}

/* ============================================= */
/* SERVICIOS — CONTENIDO SIEMPRE VISIBLE        */
/* ============================================= */

/* En móvil no existe el evento :hover, así que el ícono y la
   descripción deben mostrarse directamente sin interacción. */
@media screen and (max-width: 768px) {
  .service-icon {
    opacity: 1;
    transform: translateY(0);
  }

  .service-card .service-sub {
    display: block;
    color: rgba(255, 255, 255, 0.72);
  }
}

/* =========================================== */
/* SECCIÓN "NUESTROS PRODUCTOS" — MÓVIL ONLY  */
/* =========================================== */

/* Solo aplica a .products-section para no afectar otras secciones.
   La tipografía general (panel h1/h2/p) NO toca h3, pero sí afecta p
   con !important → por eso .product-card-desc también lleva !important. */

@media screen and (max-width: 768px) {
  .products-section .product-card-title {
    font-size: 1rem;       /* 16px (vs. 1.2rem base = ~19px) */
    margin-bottom: 0;
  }

  /* Ocultar descripción en móvil — el onclick de la tarjeta sigue funcionando */
  .products-section .product-card-desc {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .products-section .product-card-title {
    font-size: 0.9375rem; /* 15px en pantallas muy pequeñas */
  }
}

/* ================================================
   BUZÓN DE TRANSPARENCIA
   ================================================ */
.buzon-intro { text-align: center; max-width: 760px; margin: 0 auto 2rem; }

.info-card {
  background-color: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.buzon-intro-card { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.buzon-intro-card p { color: rgba(255, 255, 255, 0.72); line-height: 1.8; font-size: 0.95rem; }

.buzon-form-wrap { max-width: 820px; margin: 0 auto; }

.ec-subsection-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }

/* Selects: misma apariencia que .form-control + flecha personalizada */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.75rem;
  cursor: pointer;
}

select.form-control option { background-color: var(--brand-card); color: white; }

/* Switch (denuncia anónima) */
.ec-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.ec-switch input { display: none; }

.ec-switch-track {
  width: 46px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  position: relative;
  flex-shrink: 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.ec-switch-track::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform var(--transition);
}

.ec-switch input:checked + .ec-switch-track { background-color: var(--brand-green); border-color: var(--brand-green); }
.ec-switch input:checked + .ec-switch-track::before { transform: translateX(20px); background-color: var(--brand-dark); }

.ec-switch-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }

/* Radio pills (¿Existen testigos?) */
.ec-radio-group { display: flex; gap: 0.75rem; }

.ec-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition);
}

.ec-radio-pill input { display: none; }

.ec-radio-pill.active {
  border-color: var(--brand-green);
  background-color: rgba(0, 200, 133, 0.12);
  color: var(--brand-green);
}

/* Lista de evidencias seleccionadas */
.ec-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.ec-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* El nombre del archivo se trunca con puntos suspensivos en vez de desbordar */
.ec-file-chip span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-file-chip .ec-file-size { color: rgba(255, 255, 255, 0.4); font-size: 0.72rem; flex-shrink: 0; }

/* Checkboxes de confirmación */
.ec-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  line-height: 1.5;
}

.ec-confirm input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--brand-green);
  flex-shrink: 0;
  cursor: pointer;
}

/* Código de seguimiento en la pantalla de éxito */
.success-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-green);
  background-color: rgba(0, 200, 133, 0.1);
  border: 1px solid rgba(0, 200, 133, 0.3);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
}

@media (max-width: 768px) {
  .ec-radio-group { flex-wrap: wrap; }

  /* Tarjetas con menos padding para aprovechar mejor el ancho disponible */
  .info-card { padding: 1.25rem; }

  /* El switch se alinea arriba cuando la etiqueta ocupa dos líneas */
  .ec-switch { align-items: flex-start; }
  .ec-switch-track { margin-top: 0.15rem; }

  /* Recuadros de nombre/apellido, cargo/área, etc. con menos separación en móvil */
  .buzon-form-wrap .form-row { gap: 0.75rem; }
}

/* El widget de Google reCAPTCHA tiene un ancho fijo (~304px) que no cabe en
   pantallas muy angostas junto al padding del formulario; lo reescalamos. */
@media (max-width: 360px) {
  .ec-recaptcha-wrap {
    transform: scale(0.87);
    transform-origin: 0 0;
    margin-bottom: -0.5rem;
  }
}
