/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Variables CSS */
:root {
  --primary-color: #d32f2f;
  --secondary-color: #f44336;
  --dark-color: #212121;
  --light-color: #fafafa;
  --gray-color: #757575;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-phone {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  list-style: none;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 1rem 1.5rem;
}

.dropdown-menu a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1003;
  position: relative;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 4px 0;
  border-radius: 3px;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

/* Arrow indicator for dropdowns */
.arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.7em;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   FOOTER - 4 COLUMNAS
   ========================================================================== */

footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 3rem 0 1.5rem 0;
  border-top: 3px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.footer-col p {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #b0b0b0;
}

.footer-col a {
  color: #e0e0e0;
  text-decoration: none;
}

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

.footer-col strong {
  color: #ffffff;
  font-weight: 600;
}

/* Contacto destacado - Teléfono y WhatsApp más grandes */
.footer-phone a,
.footer-whatsapp a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-phone a:hover,
.footer-whatsapp a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer Bottom - Estilos consolidados más abajo (línea ~485) */

/* Redes Sociales en Footer */
.footer-social {
  margin-top: 1rem;
}

.footer-social strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #e0e0e0;
}

.social-icons a:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Primera columna - Destacada */
.footer-col:first-child h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.footer-col:first-child {
  padding-right: 0.5rem;
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem 0;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-col h4 {
    font-size: 0.95rem;
  }

  .footer-col p {
    font-size: 0.8125rem;
  }
}

@media screen and (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col {
    text-align: left;
  }
}

/* Footer Bottom */
.footer-bottom {
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #888;
}

.footer-legal a {
  color: #888;
  text-decoration: none;
  margin: 0 0.25rem;
}

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

@media screen and (max-width: 768px) {
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

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

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 0 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    gap: 0;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1.1rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
  }

  .nav-link:active {
    background-color: var(--light-color);
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .arrow {
    display: inline-block;
    margin-left: auto;
    font-size: 0.8em;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
  }

  .dropdown-menu li {
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu a {
    padding: 0.9rem 2rem;
    display: block;
    font-size: 0.92rem;
    color: var(--gray-color);
    font-weight: 400;
  }

  .dropdown-menu a:active {
    background-color: #e8e8e8;
    color: var(--primary-color);
  }

  .nav-phone {
    width: auto;
    text-align: center;
    margin: 1rem 1.5rem 0.5rem;
    display: inline-block;
    padding: 0.8rem 1.5rem;
  }

  .logo-img {
    height: 104px;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Esconder la flecha en desktop */
@media screen and (min-width: 769px) {
  .arrow {
    display: none;
  }
}

/* ==========================================================================
   INDEX PAGE STYLES
   ========================================================================== */

/* Hero Section */
.hero {
  background-color: var(--white);
  color: var(--dark-color);
  padding: 3rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.hero-content {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Columna Izquierda - Título y CTA */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-logo {
  text-align: left;
  margin-bottom: 0.5rem;
}

.hero-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--dark-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--gray-color);
}

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

/* Columna Derecha - Párrafos informativos */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  background-color: var(--white);
}

.hero-paragraph {
  color: var(--dark-color);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-paragraph:last-child {
  margin-bottom: 0;
}

.hero-paragraph strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

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

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

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

.btn-light:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ea952;
}

/* Benefits Section */
.benefits {
  padding: 4rem 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.benefit-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.benefit-card p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* ==========================================================================
   TÍTULOS ESTANDARIZADOS - Sistema Homogéneo de Tipografía
   ========================================================================== */

/*
 * ESTANDARIZACIÓN DE TÍTULOS:
 * - H2 (Títulos principales): 2.5rem desktop, 2.2rem tablet, 2rem mobile
 * - Subtítulos (.section-subtitle): 1.2rem desktop, 1rem mobile
 * - H3 (Títulos de tarjetas): 1.4rem desktop, 1.3rem tablet, 1.2rem mobile
 * - Todos con mismo peso (700), altura de línea (1.3) y espaciado
 * - Color uniforme: var(--dark-color) excepto CTA que usa white
 */

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

/* Todos los H2 del sitio - Títulos principales */
.section-title,
.services h2,
.extinguishers h2,
.contact-info h2,
.about-text h2,
.cta-content h2,
.testimonials h2,
.faq h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Todos los subtítulos principales */
.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Todos los H3 del sitio - Títulos de tarjetas */
.service-content h3,
.extinguisher-content h3,
.testimonial-name,
.about-feature-text h4,
.contact-feature-text h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.3;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid #e0e0e0;
}

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

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.service-image {
  height: 220px;
  overflow: hidden;
  background-color: var(--light-color);
}

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

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content p {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--dark-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.service-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 0.95rem;
  margin-top: auto;
}

.service-link:hover {
  background-color: var(--secondary-color);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--gray-color);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-features {
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-feature-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.about-feature-text h4 {
  margin-bottom: 0.5rem;
}

.about-feature-text p {
  color: var(--gray-color);
  line-height: 1.6;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--gray-color);
  line-height: 1.8;
  text-align: left;
}

.about-paragraph strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* CTA Premium Section - Rediseño Completo */
.cta-premium {
  padding: 5rem 0;
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  position: relative;
  overflow: hidden;
}

.cta-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-premium-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Contenido Principal */
.cta-premium-content {
  color: var(--white);
}

.cta-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-premium-badge svg {
  color: var(--white);
}

.cta-premium-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-premium-content h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-premium-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
}

.cta-premium-description strong {
  color: var(--white);
  font-weight: 700;
}

/* Features List */
.cta-premium-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-premium-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cta-premium-feature svg {
  color: #4caf50;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.3rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.cta-premium-feature span {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Tarjeta de Contacto */
.cta-premium-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-premium-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.cta-premium-card-header svg {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cta-premium-card-header h3 {
  font-size: 1.6rem;
  color: var(--dark-color);
  margin: 0;
  font-weight: 700;
}

/* Botones Premium */
.cta-premium-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-premium-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}

.cta-premium-btn svg {
  flex-shrink: 0;
}

.cta-premium-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.cta-premium-btn-label {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 500;
}

.cta-premium-btn-number {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* Botón Teléfono */
.cta-premium-btn-phone {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.cta-premium-btn-phone:hover {
  background-color: #b71c1c;
  border-color: #b71c1c;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Botón WhatsApp */
.cta-premium-btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.cta-premium-btn-whatsapp:hover {
  background-color: #1fb855;
  border-color: #1fb855;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Botón Secundario */
.cta-premium-btn-secondary {
  background-color: transparent;
  color: var(--dark-color);
  border-color: #e0e0e0;
  justify-content: center;
  gap: 0.5rem;
}

.cta-premium-btn-secondary:hover {
  background-color: var(--light-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Garantía */
.cta-premium-guarantee {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background-color: #e8f5e9;
  border-radius: 8px;
}

.cta-premium-guarantee svg {
  color: #4caf50;
  flex-shrink: 0;
}

.cta-premium-guarantee span {
  font-size: 0.9rem;
  color: #2e7d32;
  font-weight: 600;
  line-height: 1.4;
}

/* Extinguishers Section */
.extinguishers {
  padding: 5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid #e0e0e0;
}

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

.extinguisher-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
}

.extinguisher-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.extinguisher-image {
  height: 220px;
  overflow: hidden;
  background-color: var(--light-color);
}

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

.extinguisher-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.extinguisher-content h3 {
  margin-bottom: 1rem;
}

.extinguisher-content p {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.extinguisher-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.extinguisher-features li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--dark-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.extinguisher-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.extinguisher-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 0.95rem;
  margin-top: auto;
}

.extinguisher-link:hover {
  background-color: var(--secondary-color);
}

/* Contact Form Section */
.contact-form-section {
  padding: 5rem 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Columna Izquierda - Información */
.contact-intro {
  font-size: 1.1rem;
  color: var(--gray-color);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-features {
  margin-bottom: 2.5rem;
}

.contact-feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.contact-feature-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-feature-text h4 {
  margin-bottom: 0.3rem;
}

.contact-feature-text p {
  color: var(--gray-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-direct {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-direct p {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.contact-phone {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.contact-phone:hover {
  background-color: var(--secondary-color);
}

/* Columna Derecha - Formulario */
.contact-form-container {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-color);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group select {
  cursor: pointer;
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #25D366;
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-submit:hover {
  background-color: #1ea952;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-submit:active {
  transform: translateY(1px);
}

.form-privacy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
}

.form-privacy a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-privacy a:hover {
  color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid #e0e0e0;
}

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

.testimonial-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-name {
  margin: 0 0 0.25rem 0;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin: 0 0 0.15rem 0;
}

.testimonial-company {
  font-size: 0.85rem;
  color: var(--gray-color);
  margin: 0 0 0.15rem 0;
}

.testimonial-location {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

.testimonial-rating {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating .star {
  color: #FFD700;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-color);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}

.testimonial-text::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 0;
  margin-right: 0.25rem;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background-color: var(--white);
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background-color: var(--light-color);
}

.faq-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.4;
  flex: 1;
}

.faq-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 300;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(211, 47, 47, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  border-top: 1px solid transparent;
}

.faq-answer p {
  padding: 1.5rem 2rem;
  margin: 0;
  color: var(--gray-color);
  line-height: 1.8;
  font-size: 0.98rem;
}

.faq-answer p strong {
  color: var(--dark-color);
  font-weight: 600;
}

/* FAQ Active State */
.faq-item.active .faq-answer {
  max-height: 1000px;
  border-top-color: #e8e8e8;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  background-color: var(--light-color);
}

/* ==========================================================================
   CTA B2B SECTION - Llamada a la Acción para Empresas
   ========================================================================== */

.cta-b2b {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-bottom: 1px solid #e0e0e0;
}

.cta-b2b h2 {
  color: var(--white);
}

.cta-b2b-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-b2b-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.cta-b2b-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 2.5rem;
}

.cta-b2b-description strong {
  color: var(--white);
  font-weight: 600;
}

/* Benefits List */
.cta-b2b-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.cta-b2b-benefit {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.benefit-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cta-b2b-benefit strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.cta-b2b-benefit p {
  color: #b0b0b0;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Statistics */
.cta-b2b-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #a0a0a0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action Card */
.cta-action-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-action-card h3 {
  color: var(--dark-color);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.cta-action-card > p {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cta-btn svg {
  flex-shrink: 0;
}

.cta-btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.cta-btn-whatsapp:hover {
  background-color: #1fb855;
}

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

.cta-btn-phone:hover {
  background-color: #b71c1c;
}

/* Alternative Contact */
.cta-alternative {
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.cta-alternative p {
  margin: 0 0 0.6rem 0;
  color: var(--gray-color);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cta-alternative p:last-child {
  margin-bottom: 0;
}

.cta-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-email svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.cta-email a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.cta-email a:hover {
  text-decoration: underline;
}

/* Urgency Banner */
.cta-urgency {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background-color: #fff3cd;
  border-radius: 6px;
}

.cta-urgency svg {
  color: #ffb300;
  flex-shrink: 0;
}

.cta-urgency span {
  color: #856404;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE DESIGN - INDEX
   ========================================================================== */

@media screen and (max-width: 768px) {
  .hero {
    min-height: auto;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
  }

  .hero-logo {
    padding: 1.5rem;
  }

  .hero-logo-img {
    max-height: 80px;
  }

  .hero-text {
    padding: 1.5rem;
  }

  .hero-paragraph {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Títulos estandarizados en mobile */
  .section-title,
  .services h2,
  .extinguishers h2,
  .contact-info h2,
  .about-text h2,
  .cta-content h2,
  .testimonials h2,
  .faq h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-image {
    height: 200px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* CTA Premium Mobile */
  .cta-premium {
    padding: 3rem 0;
  }

  .cta-premium-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-premium-content h2 {
    font-size: 2rem;
  }

  .cta-premium-description {
    font-size: 1rem;
  }

  .cta-premium-feature span {
    font-size: 0.95rem;
  }

  .cta-premium-card {
    padding: 2rem 1.5rem;
  }

  .cta-premium-card-header h3 {
    font-size: 1.4rem;
  }

  .cta-premium-btn {
    padding: 1rem 1.2rem;
  }

  .cta-premium-btn-number {
    font-size: 1.05rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .extinguishers-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .extinguisher-image {
    height: 200px;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-form-container {
    padding: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-header {
    flex-direction: row;
  }

  .testimonial-image {
    width: 50px;
    height: 50px;
  }

  /* Ajuste de H3 y nombres en mobile */
  .service-content h3,
  .extinguisher-content h3,
  .testimonial-name {
    font-size: 1.2rem;
  }

  .testimonial-position {
    font-size: 0.85rem;
  }

  .testimonial-company {
    font-size: 0.8rem;
  }

  .testimonial-location {
    font-size: 0.75rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 1.2rem 1.5rem;
  }

  .faq-question-text {
    font-size: 1rem;
  }

  .faq-icon {
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
  }

  .faq-answer p {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
  }

  /* CTA B2B Mobile */
  .cta-b2b {
    padding: 4rem 0;
  }

  .cta-b2b-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cta-b2b h2 {
    font-size: 2rem;
  }

  .cta-b2b-description {
    font-size: 1rem;
  }

  .cta-b2b-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-action-card {
    padding: 2rem 1.5rem;
  }

  .cta-action-card h3 {
    font-size: 1.4rem;
  }

  .cta-btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .cta-alternative {
    padding: 1.2rem;
  }

  .cta-urgency {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .cta-urgency span {
    font-size: 0.85rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-paragraph {
    font-size: 0.98rem;
  }

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

  /* Ajuste de H3 en tablet */
  .service-content h3,
  .extinguisher-content h3 {
    font-size: 1.3rem;
  }

  .service-content p {
    font-size: 0.9rem;
  }

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

  .extinguisher-content p {
    font-size: 0.9rem;
  }

  .contact-form-wrapper {
    gap: 3rem;
  }

  /* CTA Premium Tablet */
  .cta-premium-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cta-premium-content h2 {
    font-size: 2.4rem;
  }

  /* Títulos estandarizados en tablet */
  .section-title,
  .services h2,
  .extinguishers h2,
  .contact-info h2,
  .about-text h2,
  .cta-content h2,
  .testimonials h2,
  .faq h2,
  .cta-b2b h2 {
    font-size: 2.2rem;
  }

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

  /* CTA B2B Tablet */
  .cta-b2b-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

/* ==========================================================================
   SERVICES DETAIL PAGE - Página de Servicios con Layout Dos Columnas
   ========================================================================== */

.services-detail {
  padding: 3rem 0;
  background-color: var(--white);
}

/* Módulo Descriptivo - Sección completa con fondo */
.services-intro-section {
  padding: 4rem 0;
  background-color: #f5f5f5;
  margin-top: 3rem;
}

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

.services-intro-header h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.services-intro-subtitle {
  font-size: 1.15rem;
  color: var(--gray-color);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.services-intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.services-intro-column h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.services-intro-column p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  text-align: left;
}

.services-intro-column p:last-child {
  margin-bottom: 0;
}

.services-intro-column p strong {
  color: var(--primary-color);
  font-weight: 600;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid #e0e0e0;
}

.service-detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Alternar posición de imagen (izquierda-derecha) */
.service-detail-reverse {
  direction: rtl;
}

.service-detail-reverse > * {
  direction: ltr;
}

.service-detail-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 640px;
  height: 480px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.3;
}

.service-detail-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-color);
  text-align: left;
  margin: 0;
}

.service-detail-content p strong {
  color: var(--primary-color);
  font-weight: 600;
}

.service-detail-content .btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Responsive - Services Detail */
@media screen and (max-width: 768px) {
  .services-detail {
    padding: 2rem 0;
  }

  /* Módulo Descriptivo Responsive */
  .services-intro-section {
    padding: 3rem 0;
  }

  .services-intro-header h3 {
    font-size: 1.6rem;
  }

  .services-intro-subtitle {
    font-size: 1rem;
  }

  .services-intro-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-intro-column h4 {
    font-size: 1.3rem;
  }

  .services-intro-column p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .service-detail-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  /* En móvil, la imagen siempre va primero */
  .service-detail-reverse {
    direction: ltr;
  }

  .service-detail-image {
    min-height: 250px;
  }

  .service-detail-content h3 {
    font-size: 1.6rem;
  }

  .service-detail-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
  }

  .service-detail-content .btn {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* Módulo Descriptivo Tablet */
  .services-intro-section {
    padding: 3.5rem 0;
  }

  .services-intro-header h3 {
    font-size: 1.9rem;
  }

  .services-intro-columns {
    gap: 2.5rem;
  }

  .services-intro-column h4 {
    font-size: 1.4rem;
  }

  .service-detail-item {
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
  }

  .service-detail-image {
    min-height: 350px;
  }

  .service-detail-content h3 {
    font-size: 1.8rem;
  }

  .service-detail-content p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   Breadcrumbs (Migas de Pan)
   ========================================================================== */

.breadcrumbs {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  overflow-x: hidden;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  overflow-x: auto;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #666;
}

.breadcrumb-item svg {
  color: #d32f2f;
  flex-shrink: 0;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a:hover {
  color: #d32f2f;
  text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: #999;
  font-size: 1.1rem;
  font-weight: 300;
}

.breadcrumb-item:last-child {
  color: #333;
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0.6rem 0;
    font-size: 0.8125rem;
  }

  .breadcrumb-list {
    gap: 0.35rem;
  }

  .breadcrumb-item svg {
    width: 12px;
    height: 12px;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin-left: 0.35rem;
  }
}

/* ==========================================================================
   Nosotros Page - Enhanced Design
   ========================================================================== */

/* Image Placeholders */
.image-placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

.image-placeholder svg {
  color: #999;
  position: relative;
  z-index: 1;
}

.image-placeholder span {
  margin-top: 1rem;
  color: #666;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.image-placeholder.building {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #90caf9;
}

.image-placeholder.building svg {
  color: #1976d2;
}

.image-placeholder.team {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-color: #ce93d8;
}

.image-placeholder.team svg {
  color: #7b1fa2;
}

.image-placeholder.vintage {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ffcc80;
}

.image-placeholder.vintage svg {
  color: #f57c00;
}

.image-placeholder.expansion {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #a5d6a7;
}

.image-placeholder.expansion svg {
  color: #388e3c;
}

.image-placeholder.digital {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  border-color: #81d4fa;
}

.image-placeholder.digital svg {
  color: #0277bd;
}

.image-placeholder.future {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border-color: #f48fb1;
}

.image-placeholder.future svg {
  color: #c2185b;
}

.image-placeholder.certificate {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  border-color: #fff176;
}

.image-placeholder.certificate svg {
  color: #f57f17;
}

.image-placeholder.safety {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-color: #ef9a9a;
}

.image-placeholder.safety svg {
  color: #c62828;
}

.image-placeholder.official {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-color: #9fa8da;
}

.image-placeholder.official svg {
  color: #3f51b5;
}

.image-placeholder.training {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border-color: #80cbc4;
}

.image-placeholder.training svg {
  color: #00796b;
}

/* Nosotros Hero Image */
.nosotros-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nosotros-hero-image .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Nosotros Intro Section */
.nosotros-intro {
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
  padding: 4rem 0;
}

.nosotros-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.nosotros-intro-image .image-placeholder {
  min-height: 280px;
}

.nosotros-intro-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.nosotros-intro-text p:last-child {
  margin-bottom: 0;
}

/* Historia Timeline */
.nosotros-historia {
  background: white;
  padding: 4rem 0;
}

.historia-timeline {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.historia-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #d32f2f 0%, #f44336 100%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-icon img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  object-fit: cover;
  display: block;
  background: white;
}

.timeline-content {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.timeline-content h3 {
  color: #333;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.timeline-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* Certificaciones Section */
.nosotros-certificaciones {
  background: #f5f5f5;
  padding: 4rem 0;
}

.certificaciones-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

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

.cert-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-icon svg {
  color: white;
}

.cert-icon.nom-154 {
  background: linear-gradient(135deg, #f57f17 0%, #ff9800 100%);
}

.cert-icon.nom-002 {
  background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
}

.cert-icon.proteccion-civil {
  background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
}

.cert-icon.nfpa {
  background: linear-gradient(135deg, #00796b 0%, #009688 100%);
}

.cert-label {
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
}

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

.certificacion-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.certificacion-image {
  width: 100%;
  overflow: hidden;
  min-height: 200px;
  max-height: 250px;
}

.certificacion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certificacion-content {
  padding: 2rem;
}

.certificacion-content h3 {
  color: #d32f2f;
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.certificacion-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.certificacion-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nosotros-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nosotros-intro-image .image-placeholder {
    min-height: 220px;
  }

  .historia-timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }

  .timeline-icon img {
    width: 60px;
    height: 60px;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.25rem;
  }

  .certificaciones-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cert-icon {
    width: 100px;
    height: 100px;
  }

  .cert-icon svg {
    width: 60px;
    height: 60px;
  }

  .certificaciones-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certificacion-image {
    max-height: 200px;
  }

  .certificacion-content {
    padding: 1.5rem;
  }

  .certificacion-content h3 {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

/* Blog Main Content */
.blog-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #d32f2f;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-date svg {
  color: #d32f2f;
}

.blog-read-time {
  color: #999;
}

.blog-card-title {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: #212121;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #d32f2f;
}

.blog-card-excerpt {
  color: #666;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d32f2f;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

.blog-read-more svg {
  flex-shrink: 0;
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.pagination-number:hover,
.pagination-number.active {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.widget-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  color: #212121;
  font-weight: 700;
}

/* Search Widget */
.search-form {
  position: relative;
  display: flex;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: #d32f2f;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn:hover {
  background: #b71c1c;
}

/* Category List */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  color: #333;
  text-decoration: none;
}

.category-list a:hover {
  color: #d32f2f;
}

.category-count {
  background: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.popular-post {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.popular-post-content h4 a {
  color: #333;
  text-decoration: none;
}

.popular-post-content h4 a:hover {
  color: #d32f2f;
}

.popular-post-date {
  font-size: 0.8rem;
  color: #999;
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
}

.cta-widget .widget-title {
  color: white;
}

.cta-widget p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.widget-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: white;
  color: #d32f2f;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.widget-cta-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.widget-cta-btn:last-child {
  margin-bottom: 0;
}

.widget-cta-btn.whatsapp-btn {
  background: #25d366;
  color: white;
}

.widget-cta-btn.whatsapp-btn:hover {
  background: #128c7e;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    min-height: 220px;
  }
}

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

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    min-height: 200px;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }

  .blog-pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-numbers {
    order: -1;
  }
}

/* ============================================
   ESTILOS PARA ARTÍCULOS INDIVIDUALES DEL BLOG - DISEÑO PROFESIONAL
   ============================================ */

.blog-post-article,
.blog-article-page {
  background: #ffffff;
  padding: 0;
  min-height: 100vh;
}

.blog-post-layout,
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.blog-post-main,
.blog-article-content {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.blog-post-header,
.article-header {
  padding: 0 0 2rem 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 3rem;
}

.blog-post-category,
.article-meta {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.category-badge,
.article-category {
  display: inline-block;
  background: #d32f2f;
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-date,
.article-reading-time {
  display: none; /* OCULTAR FECHAS - ATEMPORAL */
}

.blog-post-title,
.article-header h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  color: #1a1a1a;
  margin: 1rem 0 1.5rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-post-meta {
  display: flex;
  gap: 2rem;
  color: #666;
  font-size: 0.95rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.post-reading-time,
.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-reading-time svg,
.post-author svg {
  color: #d32f2f;
}

.blog-post-featured-image,
.article-featured-image {
  width: 100%;
  overflow: hidden;
  margin: 0 0 2rem 0;
  border-radius: 8px;
}

.blog-post-featured-image img,
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.article-featured-image figcaption {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: #666;
  font-style: normal;
  text-align: left;
  background: transparent;
  margin-top: 0.5rem;
}

.blog-post-content,
.article-content,
.blog-article-content > article {
  padding: 0;
}

.lead-paragraph,
.article-lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #2c2c2c;
  margin-bottom: 2.5rem;
  font-weight: 400;
  padding-left: 0;
  font-style: normal;
}

.table-of-contents {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-left: none;
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-of-contents h3 {
  margin: 0 0 1.75rem 0;
  font-size: 1.15rem;
  color: #d32f2f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-of-contents h3::before {
  content: "📑";
  font-size: 1.5rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.table-of-contents li {
  margin-bottom: 0;
  position: relative;
}

.table-of-contents li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-weight: bold;
}

.table-of-contents a {
  color: #333;
  text-decoration: none;
  font-size: 0.98rem;
  display: block;
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.5;
}

.table-of-contents a:hover {
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.05);
  transform: translateX(4px);
}

.table-of-contents li:hover::before {
  transform: translateX(3px);
}

.content-section,
.blog-article-content section {
  margin: 4rem 0;
}

.content-section h2,
.blog-article-content section h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin: 3rem 0 2rem 0;
  font-weight: 800;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.01em;
}

.content-section h3,
.blog-article-content section h3 {
  font-size: 1.6rem;
  color: #2c2c2c;
  margin: 2.5rem 0 1.25rem 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-section h4,
.blog-article-content section h4 {
  font-size: 1.3rem;
  color: #2c2c2c;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.content-section p,
.blog-article-content section p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #3c3c3c;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.content-section ul,
.content-section ol,
.blog-article-content section ul,
.blog-article-content section ol {
  margin: 1.75rem 0;
  padding-left: 1.5rem;
}

.content-section li,
.blog-article-content section li {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: #3c3c3c;
  font-weight: 400;
}

.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.custom-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-weight: bold;
  font-size: 1.2rem;
}

.info-box,
.warning-box {
  display: block;
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
}

.info-box-icon,
.warning-box-icon {
  display: none;
}

.info-box-content h4,
.warning-box-content h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.info-box-content p,
.warning-box-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3c3c3c;
}

.recommendation-box {
  background: #f9f9f9;
  border-left: none;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.recommendation-box h4 {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-size: 1.2rem;
  font-weight: 700;
}

.recommendation-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3c3c3c;
}

.fire-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.fire-class-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
}

.fire-class-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.fire-class-icon.class-a {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.fire-class-icon.class-b {
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

.fire-class-icon.class-c {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

.fire-class-card h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
}

.fire-class-card p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.fire-class-card p strong {
  color: #d32f2f;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.advantage-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.advantage-icon {
  margin-bottom: 1rem;
}

.advantage-icon svg {
  color: #4caf50;
}

.advantage-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
}

.advantage-item p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.disadvantages-list {
  list-style: none;
  padding: 0;
}

.disadvantages-list li {
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 1rem;
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  position: relative;
}

.disadvantages-list li::before {
  content: "⚠";
  position: absolute;
  left: 1rem;
  font-size: 1.5rem;
}

.location-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.location-list li {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: none;
}

.capacity-table table,
.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.capacity-table thead,
.price-table thead {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
}

.capacity-table th,
.price-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.capacity-table td,
.price-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.capacity-table tr:hover,
.price-table tr:hover {
  background: #f8f9fa;
}

.price-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

.maintenance-timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-marker {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  text-align: center;
}

.timeline-marker.monthly {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.timeline-marker.annual {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

.timeline-marker.five-years {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.timeline-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.timeline-content p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.timeline-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.timeline-content li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.blog-post-image {
  margin: 3rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.75rem;
}

.cta-inline {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.cta-inline-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
  color: white;
}

.cta-inline-content p {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: white;
  opacity: 0.95;
}

.cta-inline-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: #d32f2f;
}

.btn-primary:hover {
  background: #f5f5f5;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

.conclusion {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: none;
  margin: 3rem 0;
}

/* ============================================
   ARTÍCULOS RELACIONADOS - DISEÑO COMPACTO Y MODERNO
   ============================================ */

.related-articles,
.related-articles-section {
  margin: 5rem 0 3rem 0;
  padding: 3rem 0 0 0;
  border-top: 1px solid #e5e5e5;
}

.related-articles h2,
.related-articles-section h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.related-grid,
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.related-card,
.related-article-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  gap: 1.25rem;
  padding: 0;
}

.related-card:hover,
.related-article-card:hover {
  transform: translateY(-2px);
}

.related-image,
.related-article-image {
  width: 140px;
  min-width: 140px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-image img,
.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card:hover .related-image img,
.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-content,
.related-article-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-category,
.related-article-category {
  display: inline-block;
  background: transparent;
  color: #d32f2f;
  padding: 0;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.related-content h3,
.related-article-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
}

.related-content h3 a,
.related-article-content h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.related-content h3 a:hover,
.related-article-content h3 a:hover {
  color: #d32f2f;
}

.related-article-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-link {
  font-size: 0.85rem;
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
}

.related-article-link:hover {
  color: #b71c1c;
  transform: translateX(3px);
  display: inline-block;
}

.related-time {
  display: none;
}

/* Responsive para artículos relacionados */
@media (max-width: 768px) {
  .related-grid,
  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .related-article-card {
    gap: 1rem;
  }

  .related-article-image {
    width: 120px;
    min-width: 120px;
    height: 85px;
  }

  .related-article-content h3 {
    font-size: 1rem;
  }

  .related-article-excerpt {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .related-article-image {
    width: 100px;
    min-width: 100px;
    height: 75px;
  }

  .related-article-content h3 {
    font-size: 0.95rem;
  }
}

/* SIDEBAR DEL BLOG POST */

.blog-post-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticky-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sticky-toc .toc-list li {
  margin-bottom: 0.75rem;
}

.sticky-toc .toc-list a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 1rem;
}

.sticky-toc .toc-list a:hover {
  color: #d32f2f;
  border-left-color: #d32f2f;
}

.highlight-widget {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.highlight-content img {
  width: 100%;
  height: auto;
  display: block;
}

.highlight-content {
  padding: 1.5rem;
}

.highlight-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.highlight-content p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.highlight-link {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.highlight-link:hover {
  text-decoration: underline;
}

.share-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn:hover {
  opacity: 0.9;
}

/* CTA FINAL */

.final-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  padding: 4rem 0;
  color: white;
}

.final-cta-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.final-cta-text h2 {
  font-size: 2.25rem;
  margin: 0 0 1rem 0;
  color: white;
}

.final-cta-text p {
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.final-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.final-cta-benefits li {
  font-size: 1rem;
  color: white;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary-large,
.btn-secondary-large {
  display: block;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.btn-primary-large {
  background: #d32f2f;
  color: white;
}

.btn-primary-large:hover {
  background: #b71c1c;
}

.btn-secondary-large {
  background: white;
  color: #1a1a1a;
  border: 2px solid white;
}

.btn-secondary-large:hover {
  background: transparent;
  color: white;
}

/* RESPONSIVE PARA BLOG POST */

@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-post-sidebar {
    position: static;
  }

  .final-cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-post-title {
    font-size: 1.75rem;
  }

  .blog-post-header {
    padding: 1.5rem;
  }

  .blog-post-content {
    padding: 1.5rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.25rem;
  }

  .lead-paragraph {
    font-size: 1.1rem;
  }

  .fire-classes-grid,
  .advantages-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-inline-buttons {
    flex-direction: column;
  }

  .final-cta-benefits {
    grid-template-columns: 1fr;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Blog Sidebar - Artículos y Productos Relacionados
   ========================================================================== */

/* Sidebar Articles Widget */
.related-articles-widget,
.products-widget {
  margin-bottom: 2rem;
}

.sidebar-articles-grid,
.sidebar-products-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar Article Card */
.sidebar-article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.sidebar-article-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-article-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
}

.sidebar-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-article-content {
  padding: 1.25rem;
}

.sidebar-article-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.sidebar-article-content h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.sidebar-article-content h4 a:hover {
  color: #d32f2f;
}

.sidebar-article-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.sidebar-article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d32f2f;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* Sidebar Product Card */
.sidebar-product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.sidebar-product-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-product-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.sidebar-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #d32f2f;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.sidebar-product-content {
  padding: 1.25rem;
}

.sidebar-product-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.sidebar-product-content h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.sidebar-product-content h4 a:hover {
  color: #d32f2f;
}

.sidebar-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d32f2f;
  margin: 0 0 0.75rem 0;
}

.sidebar-product-classes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.mini-badge.class-a {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.mini-badge.class-b {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.mini-badge.class-c {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

.mini-badge.class-k {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.sidebar-product-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #d32f2f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.sidebar-product-btn:hover {
  background: #b71c1c;
}

/* Responsive Sidebar Widgets */
@media (max-width: 1024px) {
  .sidebar-articles-grid,
  .sidebar-products-grid {
    gap: 1.25rem;
  }

  .sidebar-article-image,
  .sidebar-product-image {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .sidebar-articles-grid,
  .sidebar-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sidebar-article-image,
  .sidebar-product-image {
    height: 120px;
  }

  .sidebar-article-content,
  .sidebar-product-content {
    padding: 1rem;
  }

  .sidebar-article-content h4,
  .sidebar-product-content h4 {
    font-size: 0.9rem;
  }

  .sidebar-article-excerpt {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sidebar-articles-grid,
  .sidebar-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Secciones de Confianza y Certificaciones
   ======================================================================== */

/* Sección de Certificaciones y Confianza */
.certifications-trust {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

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

.certification-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
}

.certification-card:hover {
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.12);
  border-color: var(--primary-color);
}

.certification-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.certification-card h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.certification-description {
  font-size: 0.95rem;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.certification-status {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Indicadores de Confianza - Diseño Minimalista Profesional */
.trust-indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.trust-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.trust-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.08);
}

.trust-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 8px;
  color: #616161;
}

.trust-card:hover .trust-card-icon {
  background: #fff5f5;
  color: var(--primary-color);
}

.trust-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-number {
  font-size: 2rem;
  font-weight: 800;
  color: #212121;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #424242;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.trust-desc {
  font-size: 0.875rem;
  color: #757575;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .trust-indicators-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .trust-indicators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-card {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-card-icon {
    width: 44px;
    height: 44px;
  }

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

  .trust-number {
    font-size: 1.75rem;
  }

  .trust-label {
    font-size: 0.8125rem;
  }

  .trust-desc {
    font-size: 0.8125rem;
  }
}

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

  .trust-card {
    padding: 1.5rem;
  }
}

/* Sección de Clientes y Sectores */
.clients-section {
  padding: 5rem 0;
  background: white;
}

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

.industry-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #f5f5f5;
}

.industry-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.industry-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.industry-item h3 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.industry-item p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Garantías de Servicio */
.service-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.guarantee-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #ffcdd2;
}

.guarantee-card:hover {
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.12);
  border-color: var(--primary-color);
}

.guarantee-card svg {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.guarantee-card h4 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.guarantee-card p {
  font-size: 0.95rem;
  color: var(--gray-color);
  line-height: 1.6;
}

/* Responsive - Certificaciones y Confianza */
@media (max-width: 1024px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

@media (max-width: 768px) {
  .certifications-trust,
  .clients-section {
    padding: 3rem 0;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-indicator {
    padding: 1.5rem;
  }

  .trust-number {
    font-size: 1.8rem;
  }

  .clients-industries {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .industry-item {
    padding: 1.5rem 1rem;
  }

  .industry-icon {
    width: 60px;
    height: 60px;
  }

  .service-guarantees {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guarantee-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .certifications-grid,
  .trust-indicators,
  .clients-industries,
  .service-guarantees {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .certification-card,
  .guarantee-card {
    padding: 2rem 1.5rem;
  }

  .certification-badge {
    width: 70px;
    height: 70px;
  }

  .trust-indicator {
    flex-direction: column;
    text-align: center;
  }

  .trust-number {
    font-size: 2.5rem;
  }

  /* Artículos responsive */
  .blog-article-page .blog-layout,
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 1.5rem;
  }

  .article-header h1,
  .blog-post-title {
    font-size: 2rem;
  }

  .content-section h2,
  .blog-article-content section h2 {
    font-size: 1.75rem;
  }

  .content-section h3,
  .blog-article-content section h3 {
    font-size: 1.4rem;
  }

  .article-lead,
  .lead-paragraph {
    font-size: 1.15rem;
  }

  .blog-sidebar {
    position: static;
  }
}

/* ==========================================================================
   ACCESIBILIDAD Y MICROINTERACCIONES
   Añadido: 2026-01-23
   ========================================================================== */

/* Skip Link - Para navegación por teclado */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  z-index: 10001;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--dark-color);
  outline-offset: 2px;
}

/* Screen Reader Only - Contenido solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible - Indicador de foco mejorado */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Eliminar outline en elementos que no lo necesitan visualmente */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   MICROINTERACCIONES - Botones
   ========================================================================== */

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #b71c1c;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-whatsapp:hover {
  background-color: #1da851;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   MICROINTERACCIONES - Cards
   ========================================================================== */

.service-card,
.extinguisher-card,
.benefit-card,
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.extinguisher-card:hover,
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MICROINTERACCIONES - Enlaces
   ========================================================================== */

.nav-link {
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.service-link,
.extinguisher-link {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.service-link:hover,
.extinguisher-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   MICROINTERACCIONES - Imágenes
   ========================================================================== */

.service-image img,
.extinguisher-image img {
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img,
.extinguisher-card:hover .extinguisher-image img {
  transform: scale(1.05);
}

/* ==========================================================================
   MICROINTERACCIONES - Formularios
   ========================================================================== */

.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* ==========================================================================
   ACCESIBILIDAD - Reduce Motion
   ========================================================================== */

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

  .btn:hover,
  .service-card:hover,
  .extinguisher-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   ACCESIBILIDAD - Alto Contraste
   ========================================================================== */

@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid var(--dark-color);
  }

  .nav-link:hover,
  .nav-link:focus {
    text-decoration: underline;
  }

  *:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
  }
}
