/* =============================================
   C&R AUDITORES — CSS PRODUCCIÓN 2026
   PALETA CORPORATIVA MINERA DEL NORTE
   ─────────────────────────────────────────────
   Naranja solar  → sol del desierto de Atacama
                    cascos mineros Codelco
   Gris desierto  → atardeceres de Calama
                    caliche y polvo del altiplano
   ============================================= */

/* ---- RESET & VARIABLES ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --solar: #e8600a;
  --solar-light: #f07830;
  --solar-deep: #c04e00;
  --solar-glow: rgba(232, 96, 10, 0.18);
  --desert: #2e2a24;
  --desert-mid: #5a5248;
  --desert-sand: #8c7d6e;
  --desert-dust: #c8bdb2;
  --desert-light: #f2ede8;
  --desert-white: #faf8f6;
  --white: #ffffff;
  --text: #1c1a18;
  --text-muted: #6b5f55;
  --border: #ddd5cc;
  --shadow: 0 4px 20px rgba(46, 42, 36, 0.1);
  --shadow-md: 0 8px 32px rgba(46, 42, 36, 0.16);
  --shadow-orange: 0 6px 24px rgba(232, 96, 10, 0.3);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--desert-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-fluid {
  width: 100%;
  padding: 0 1.25rem;
}

/* ═══════════════════════════════════════════════════
   SECCIÓN CON FONDO OSCURO / BG-IMAGE — CONTRASTE
   Garantiza texto legible en CUALQUIER sección que
   use background-image con overlay oscuro.
   Aplica globalmente a todas las páginas.
═══════════════════════════════════════════════════ */
.bg-dark-overlay,
.about-bg-1,
.about-bg-2,
.testimonios-parallax,
.hero-slide,
.page-hero,
.about-strip,
.cta-section {
  color: var(--white);
}

/* Texto dentro de fondos oscuros — herencia forzada */
.bg-dark-overlay p,
.about-bg-1 p,
.about-bg-2 p,
.testimonios-parallax p {
  color: rgba(255, 255, 255, 0.88);
}

/* Encabezados dentro de fondos oscuros */
.bg-dark-overlay h1,
.bg-dark-overlay h2,
.bg-dark-overlay h3,
.about-bg-1 h1,
.about-bg-1 h2,
.about-bg-1 h3,
.about-bg-2 h1,
.about-bg-2 h2,
.about-bg-2 h3,
.testimonios-parallax h1,
.testimonios-parallax h2,
.testimonios-parallax h3 {
  color: var(--white) !important;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--solar);
  color: var(--white);
  border-color: var(--solar);
}
.btn-primary:hover {
  background: var(--solar-light);
  border-color: var(--solar-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--solar);
  border-color: var(--solar);
}
.btn-outline:hover {
  background: var(--solar);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--solar-deep);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--solar);
  color: var(--white);
  border-color: var(--solar);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--desert);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.topbar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-info i {
  color: var(--solar);
}
.topbar-info a {
  color: rgba(255, 255, 255, 0.9);
}
.topbar-info a:hover {
  color: var(--solar-light);
}
.topbar-social {
  display: flex;
  gap: 0.75rem;
}
.topbar-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.topbar-social a:hover {
  color: var(--solar);
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--desert-dust);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav-brand img {
  height: 65px;
  width: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-menu li {
  position: relative;
}
.nav-menu > li > a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--desert);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--desert-light);
  color: var(--solar);
}
.nav-menu > li > a.active {
  position: relative;
}
.nav-menu > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--solar);
  border-radius: 2px;
}
.nav-btn {
  background: var(--solar) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.1rem !important;
  font-size: 0.85rem !important;
}
.nav-btn:hover {
  background: var(--solar-light) !important;
  color: var(--white) !important;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--desert-dust);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
  border-top: 3px solid var(--solar);
}
.has-dropdown:hover .dropdown,
.has-dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--desert-light);
  color: var(--solar);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--desert);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Animación hamburguesa → X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  height: 77vh;
  min-height: 520px;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(46, 42, 36, 0.85) 0%,
    rgba(46, 42, 36, 0.6) 45%,
    rgba(232, 96, 10, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: 8vw;
  color: var(--white);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-content h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--solar);
  border-radius: 2px;
  margin-top: 0.75rem;
}
.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(232, 96, 10, 0.2);
  border: 1.5px solid rgba(232, 96, 10, 0.5);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev {
  left: 1.5rem;
}
.hero-next {
  right: 1.5rem;
}
.hero-prev:hover,
.hero-next:hover {
  background: var(--solar);
  border-color: var(--solar);
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-dots button.active {
  background: var(--solar);
  transform: scale(1.35);
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--solar);
  color: var(--white);
  padding: 1.5rem 0;
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.stat-label {
  font-size: 0.82rem;
  opacity: 0.88;
  font-weight: 500;
}

/* ── SECCIONES ── */
.section {
  padding: 5rem 0;
}
.section-alt {
  padding: 5rem 0;
  background: var(--desert-light);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--desert);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--solar);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── SERVICIOS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-bottom-color: var(--solar);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--desert-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--solar);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
  background: var(--solar);
  color: var(--white);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--desert);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--solar);
}
.card-link:hover {
  color: var(--solar-deep);
}

/* ── PLANES ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover {
  box-shadow: var(--shadow-md);
}
.plan-featured {
  border-color: var(--solar);
  box-shadow: var(--shadow-orange);
  transform: scale(1.03);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--solar);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--desert);
  margin-bottom: 0.25rem;
}
.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--solar);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
}
.price-currency {
  font-size: 1.3rem;
  margin-top: 0.4rem;
}
.price-period {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 0.25rem;
}
.plan-features {
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.plan-features i {
  color: var(--solar);
  flex-shrink: 0;
}

/* ── ABOUT STRIP (index.html) ── */
.about-strip {
  background: var(--desert);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--solar-deep), var(--solar), var(--solar-light));
}
.about-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.about-text p {
  opacity: 0.82;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.about-list i {
  color: var(--solar);
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  min-width: 180px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.big-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--solar);
  line-height: 1;
}
.about-stat span:last-child {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.3;
}

/* ── TESTIMONIOS (fondo claro) ── */
.testimonials-section {
  background: var(--white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--desert-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--solar);
}
.testimonial-stars {
  color: var(--solar);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--solar);
}
.testimonial-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--solar);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--desert);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--solar-deep) 0%, var(--solar) 50%, var(--solar-light) 100%);
  padding: 5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.cta-inner p {
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: var(--desert);
  color: rgba(255, 255, 255, 0.72);
}
.footer-main {
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-col img {
  margin-bottom: 1rem;
  height: 45px;
  width: auto;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-col h4 {
  color: var(--solar);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--solar-light);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--solar);
  color: var(--white);
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.footer-contact i {
  color: var(--solar);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer-contact a:hover {
  color: var(--solar-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.45;
}
.footer-bottom a:hover {
  color: var(--solar-light);
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--desert) 0%, #4a3f35 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--solar-deep), var(--solar), var(--solar-light));
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--solar);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}
.page-hero p {
  opacity: 0.82;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.65;
}
.breadcrumb a:hover {
  opacity: 1;
  color: var(--solar-light);
}

/* ── FORMULARIOS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--desert);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--solar);
  box-shadow: 0 0 0 3px var(--solar-glow);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-group .field-error {
  font-size: 0.8rem;
  color: #dc2626;
  display: none;
}
.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}
.form-status.success {
  background: #fef3e2;
  color: var(--solar-deep);
  border: 1px solid var(--solar);
  display: block;
}
.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* ── RADIO BUTTONS ── */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}
.radio-option:has(input:checked) {
  border-color: var(--solar);
  background: rgba(232, 96, 10, 0.06);
  color: var(--solar-deep);
  font-weight: 600;
}
.radio-option input[type="radio"] {
  accent-color: var(--solar);
}

/* ── TOOL LAYOUT (foliador, ppm) ── */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.tool-info-card {
  background: var(--desert-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--solar);
  position: sticky;
  top: 90px;
}
.tool-info-card h3 {
  color: var(--desert);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.tool-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tool-info-card .contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.tool-info-card .contact-detail li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}
.tool-info-card .contact-detail i {
  color: var(--solar);
  flex-shrink: 0;
}
.tool-info-card .contact-detail a:hover {
  color: var(--solar);
}
.tool-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tool-form-card h2 {
  font-family: var(--font-display);
  color: var(--desert);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.tool-form-card p.subtitle {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 2rem;
}
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232, 96, 10, 0.1);
  color: var(--solar-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(232, 96, 10, 0.25);
  margin-bottom: 1.5rem;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.result-item {
  background: var(--desert-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--solar);
}
.result-item .r-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.result-item .r-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--desert);
}

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  animation: wpulse 2.5s infinite;
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float:hover {
  background: #1fb356;
  transform: scale(1.1);
  color: var(--white);
}
@keyframes wpulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── PRINT ── */
@media print {
  .topbar,
  .navbar,
  .whatsapp-float,
  .footer,
  .cta-section,
  .no-print {
    display: none !important;
  }
}

/* ── CLASE UTILITARIA NO-PRINT ── */
/* Usada en ppm, foliador, calculadora-fechas, ppmo-circular7 */
/* para ocultar secciones en impresión sin duplicar id */

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile-first, sin user-scalable=0
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu > li > a {
    padding: 1rem 0;
    width: 100%;
    font-size: 1rem;
  }
  .nav-menu > li > a.active::after {
    display: none;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: hidden;
    height: 0;
    box-shadow: none;
    border: none;
    border-top: none;
    transform: none;
    background: var(--desert-light);
    border-radius: 0;
    transition: height 0.3s ease, visibility 0.3s;
    overflow: hidden;
  }
  .has-dropdown.active .dropdown {
    visibility: visible;
    height: auto;
  }
  .about-strip-inner {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: row;
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar-info {
    display: none;
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .tool-info-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 75vh;
  }
  .hero-content {
    margin-left: 5vw;
    padding-right: 5vw;
  }
  .hero-prev,
  .hero-next {
    width: 38px;
    height: 38px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plan-featured {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    justify-content: center;
  }
}
