/* ==========================================================================
   ARHETÉIA - SISTEMA DE DISEÑO Y HOJA DE ESTILOS PRINCIPAL
   Giro: Estructura Organizacional, Blindaje Legal y Paz Laboral
   Paleta Oficial: Verde Esmeralda (#00C486) & Verde Bosque Profundo (#062A26)
   Tipografía Oficial: Montserrat (Google Fonts)
   Contenedor Obligatorio: 1150px (max-width: 1150px; margin: 0 auto;)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  /* Colores Corporativos Arhetéia */
  --primary: #00C486;
  --primary-hover: #00a873;
  --primary-light: rgba(0, 196, 134, 0.12);
  --primary-glow: rgba(0, 196, 134, 0.35);
  
  --dark: #062A26;
  --dark-surface: #0e3b36;
  --dark-card: #144741;
  --dark-border: #23423F;
  
  --text-main: #172B28;
  --text-muted: #566D68;
  --text-light: #8DAAA4;
  --text-white: #FFFFFF;
  
  --bg-light: #F4F8F6;
  --bg-white: #FFFFFF;
  --bg-subtle: #EAF2EE;
  --border-light: #DCE8E4;
  
  --whatsapp-color: #25D366;
  --whatsapp-hover: #20BA5A;
  
  /* Sistema de Sombras */
  --shadow-sm: 0 2px 8px rgba(6, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 42, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 42, 38, 0.12);
  --shadow-glow: 0 0 25px rgba(0, 196, 134, 0.4);
  
  /* Tipografía Oficial Idéntica a arheteia.com */
  --font-main: 'Montserrat', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Reset Global y Tipografía Estricta */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  font-family: 'Montserrat', sans-serif;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor Estricto de 1150px */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Tipografía y Títulos con Montserrat */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

/* Subtítulos de Sección con Flechas Oficiales de Arhetéia */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Botones Principales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 4px 18px rgba(0, 196, 134, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 196, 134, 0.45);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--text-white);
  border-color: var(--dark);
}

.btn-dark:hover {
  background-color: var(--dark-surface);
  border-color: var(--dark-surface);
  color: var(--primary);
  transform: translateY(-2px);
}

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

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

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--dark);
  border-color: var(--text-white);
}

/* ==========================================================================
   TOPBAR Y HEADER / NAVEGACIÓN
   ========================================================================== */

.topbar {
  background-color: var(--dark);
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 8px 0;
}

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

.topbar-info {
  display: flex;
  gap: 24px;
}

.topbar-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.topbar-info a:hover {
  color: var(--primary);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
}

.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 86px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.site-logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #062A26 0%, #0B3A35 100%);
  color: var(--text-white);
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 196, 134, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--text-white);
  font-size: 3rem;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-content h1 span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content p {
  color: #C3DAD5;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.hero-stat-item .stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--dark-border);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-white);
  color: var(--dark);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  z-index: 3;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICIOS Y PESTAÑAS / TABS DINÁMICAS
   ========================================================================== */

.services-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.services-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 22px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: var(--bg-white);
  color: var(--dark);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--dark);
}

.tab-btn.active {
  background-color: var(--dark);
  color: var(--primary);
  border-color: var(--dark);
  box-shadow: var(--shadow-md);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

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

.service-card-detailed {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card-img {
  position: relative;
  height: 100%;
  min-height: 420px;
}

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

.service-card-body {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--dark);
  margin-bottom: 1rem;
}

.service-deliverables {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.service-deliverables li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.service-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Grilla de Servicios General */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.service-box-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.service-box:hover .service-box-img img {
  transform: scale(1.05);
}

.service-box-content {
  padding: 30px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-box-content h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--dark);
}

.service-box-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-box-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.service-box-link:hover {
  color: var(--dark);
  gap: 12px;
}

/* ==========================================================================
   COTIZADOR / CALCULADORA INTERACTIVA
   ========================================================================== */

.cotizador-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.cotizador-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.cotizador-controls {
  padding: 50px 45px;
}

.cotizador-group {
  margin-bottom: 28px;
}

.cotizador-group label.group-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.calc-option {
  position: relative;
}

.calc-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.calc-option label {
  display: block;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.calc-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary);
}

.cotizador-summary {
  background-color: var(--dark);
  color: var(--text-white);
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.summary-header h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.summary-header p {
  color: var(--text-light);
  font-size: 0.88rem;
}

.summary-result-box {
  background-color: var(--dark-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 25px 0;
  border: 1px solid var(--dark-border);
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.result-item:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
}

.result-label {
  color: var(--text-light);
}

.result-val {
  color: var(--text-white);
  font-weight: 700;
  text-align: right;
}

.result-val.highlight {
  color: var(--primary);
  font-size: 1.15rem;
}

.summary-recommendation {
  background-color: rgba(0, 196, 134, 0.08);
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #D1E5E1;
  margin-bottom: 25px;
  line-height: 1.5;
}

.whatsapp-quote-btn {
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-quote-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

/* ==========================================================================
   QUIÉNES SOMOS Y VENTAJAS COMPETITIVAS
   ========================================================================== */

.about-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary-light);
}

.about-image-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 2rem 0;
}

.feature-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 3px solid var(--primary);
}

.feature-box h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.feature-box p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Ventajas Competitivas Section */
.advantages-section {
  padding: 90px 0;
  background-color: var(--dark);
  color: var(--text-white);
}

.advantages-section h2 {
  color: var(--text-white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.adv-card {
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: all var(--transition-normal);
}

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

.adv-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 196, 134, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.adv-card h3 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.adv-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SLIDER DE TESTIMONIOS (CARRUSEL INTERACTIVO)
   ========================================================================== */

.testimonials-section {
  padding: 100px 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-slider {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary-light);
  margin-bottom: -15px;
  font-family: Georgia, serif;
}

.testimonial-rating {
  color: #F59E0B;
  font-size: 1.2rem;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 26px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-weight: 800;
  color: var(--dark);
  font-size: 1rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--dark);
  color: var(--primary);
  border-color: var(--dark);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 28px;
  border-radius: 10px;
}

/* ==========================================================================
   ACORDEÓN DE PREGUNTAS FRECUENTES (FAQS)
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background-color: var(--bg-white);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 26px 24px;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO Y BACKEND PHP
   ========================================================================== */

.contact-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.contact-info-col {
  background-color: var(--dark);
  color: var(--text-white);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-col h2 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info-col p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--dark-border);
}

.contact-info-text strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-text a,
.contact-info-text span {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-info-text a:hover {
  color: var(--primary);
}

.contact-form-col {
  padding: 50px 45px;
}

.contact-form-col h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-form-col p.form-desc {
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 196, 134, 0.15);
}

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

/* Antispam Aritmético Invisible/Amigable */
.security-math-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.security-math-box span.security-question {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.security-math-box input {
  width: 90px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   FOOTER COMPLETO (NAP, LINKS, POLÍTICAS Y REDES SOCIALES)
   ========================================================================== */

.site-footer {
  background-color: var(--dark);
  color: var(--text-white);
  border-top: 3px solid var(--primary);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 18px 0 24px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Redes Sociales Interactivas (Facebook, Instagram, YouTube, LinkedIn, TikTok) */
.social-icons-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 196, 134, 0.4);
}

.footer-bottom {
  padding: 26px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (INFERIOR IZQUIERDA - 60px x 60px)
   ========================================================================== */

.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.25s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
  color: #FFFFFF;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   BOTÓN Y MODAL DE CHATBOT WEB (INFERIOR DERECHA)
   ========================================================================== */

.chatbot-float-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chatbot-trigger-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary);
  background-color: var(--dark);
  padding: 0;
  overflow: visible;
  transition: transform 0.25s ease;
}

.chatbot-trigger-btn:hover {
  transform: scale(1.08);
}

.chatbot-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px var(--primary);
}

/* Modal del Chatbot */
.chatbot-modal {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(6, 42, 38, 0.25);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: chatOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 1000;
}

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

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background-color: var(--dark);
  color: var(--text-white);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.chat-header-name strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-white);
}

.chat-header-name span {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.chat-close-btn:hover {
  color: var(--text-white);
}

.chat-body {
  padding: 20px;
  max-height: 380px;
  overflow-y: auto;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-message.bot {
  background-color: var(--bg-white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.quick-reply-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--primary);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.quick-reply-btn:hover {
  background-color: var(--primary);
  color: var(--dark);
}

.chat-footer {
  padding: 12px 16px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.85rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  background-color: var(--primary);
  color: var(--dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

/* ==========================================================================
   PÁGINAS INTERNAS (SERVICIOS, COTIZADOR, NOSOTROS, CONTACTO, BLOG)
   ========================================================================== */

.page-header-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #0D3F39 100%);
  color: var(--text-white);
  padding: 70px 0;
  text-align: center;
  position: relative;
}

.page-header-banner h1 {
  color: var(--text-white);
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.current {
  color: var(--primary);
  font-weight: 600;
}

/* Estilos de Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 70px 0;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card-content {
  padding: 26px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card-content h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--dark);
}

.blog-card-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* Plantilla Maestra Editorial / Master Template Preview */
.template-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  margin: 40px 0;
}

.template-box h3 {
  color: var(--dark);
  margin-bottom: 16px;
}

.template-step {
  margin-bottom: 18px;
  padding-left: 20px;
  border-left: 2px solid var(--border-light);
}

.template-step strong {
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .service-card-detailed,
  .cotizador-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid,
  .advantages-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  
  .site-header .container {
    height: 72px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 20px;
  }
  
  .site-nav.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 16px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .services-grid,
  .advantages-grid,
  .blog-grid,
  .about-features,
  .options-grid,
  .options-grid.triple,
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float-btn {
    bottom: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
  
  .chatbot-float-wrapper {
    bottom: 20px;
    right: 20px;
  }
  
  .chatbot-modal {
    width: calc(100vw - 40px);
    right: -10px;
  }
}
