@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=Barlow+Condensed:wght@700;800&display=swap');

:root {
  --recmac-negro: #1a1a1a;
  --recmac-amarillo: #e8b800;
  --recmac-rojo: #c0392b;
  --recmac-blanco: #ffffff;
  --recmac-gris: #2e2e2e;
  --recmac-gris-claro: #f4f4f4;

  /* Aliases para compatibilidad con código existente */
  --color-dark-gray: var(--recmac-gris);
  --color-light-gray: var(--recmac-gris-claro);
  --color-red: var(--recmac-rojo);
  --color-yellow: var(--recmac-amarillo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--recmac-blanco);
  color: var(--recmac-negro);
  scroll-behavior: smooth;
}

/* Tipografías */
h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
}

a {
  text-decoration: none;
}

/* =========================================
   CONTENEDOR GLOBAL
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER Y LOGO
========================================= */
.site-header {
  background-color: var(--recmac-negro);
  padding: 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.header-logo-img,
.logo img,
.nav-logo img,
.navbar-brand img,
.header-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav ul li a {
  color: var(--recmac-blanco);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  text-decoration: none;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--recmac-amarillo);
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn-primary {
  background-color: var(--recmac-amarillo);
  color: var(--recmac-negro);
}
.btn-primary:hover {
  opacity: 0.85;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--recmac-blanco);
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* =========================================
   SECCIÓN 1: HERO
========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--recmac-negro);
}

.hero-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(26, 26, 26, 1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--recmac-amarillo);
  color: var(--recmac-negro);
  font-weight: 700;
  padding: 5px 15px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--recmac-blanco);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-text {
  color: #cccccc;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas a {
  padding: 15px 30px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  border-radius: 2px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-primary {
  background-color: var(--recmac-amarillo);
  color: var(--recmac-negro);
}

.cta-secondary {
  background-color: var(--recmac-rojo);
  color: var(--recmac-blanco);
}

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

.wa-icon {
  width: 20px;
  height: 20px;
}

/* =========================================
   SECCIÓN 2: BANDA SERVICIOS
========================================= */
.services-band {
  background-color: var(--recmac-negro);
  padding: 60px 20px;
}

.service-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.service-item {
  position: relative;
  padding-left: 20px;
  border-left: 4px solid transparent;
}

.star-item {
  border-left-color: var(--recmac-rojo);
  padding-top: 15px;
}

.service-badge {
  position: absolute;
  top: -10px;
  left: 0;
  background-color: var(--recmac-rojo);
  color: var(--recmac-blanco);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.service-icon {
  color: var(--recmac-amarillo);
  font-size: 28px;
  margin-bottom: 10px;
}

.service-title {
  color: var(--recmac-blanco);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-desc {
  color: #999999;
  font-size: 1rem;
}

/* =========================================
   SECCIÓN 3: EQUIPOS DESTACADOS
========================================= */
.featured-equipments {
  padding: 80px 20px;
  background-color: var(--recmac-blanco);
  max-width: 1200px;
  margin: 0 auto;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.equipment-card {
  position: relative;
  background-color: var(--recmac-gris-claro);
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.equipment-card:hover {
  border-top-color: var(--recmac-rojo);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--recmac-rojo);
  color: var(--recmac-blanco);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  z-index: 2;
}

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

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

.equipment-card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  color: var(--recmac-negro);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--recmac-gris);
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  color: var(--recmac-rojo);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.card-btn {
  display: block;
  text-align: center;
  background-color: var(--recmac-negro);
  color: var(--recmac-blanco);
  font-weight: 600;
  padding: 12px;
  width: 100%;
  transition: background 0.3s;
}

.card-btn:hover {
  background-color: var(--recmac-amarillo);
  color: var(--recmac-negro);
}

.catalog-cta {
  text-align: center;
}

.cta-catalog {
  display: inline-block;
  background-color: var(--recmac-amarillo);
  color: var(--recmac-negro);
  font-weight: 700;
  padding: 15px 30px;
}

/* Skeletons */
.skeleton-card {
  height: 400px;
  background: #eee;
  animation: pulse 1.5s infinite;
  display: flex;
  flex-direction: column;
}
.skeleton-img {
  height: 200px;
  background: #ddd;
}
.skeleton-text {
  flex-grow: 1;
  margin: 20px;
  background: #ddd;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.fetch-error {
  grid-column: 1 / -1;
  background-color: var(--recmac-rojo);
  color: var(--recmac-blanco);
  text-align: center;
  padding: 30px;
  font-weight: 600;
}
.error-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
}

/* =========================================
   SECCIÓN 4: FAENAS REALES
========================================= */
.real-work {
  background-color: var(--recmac-gris-claro);
  padding: 80px 20px;
}

.real-work-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  color: var(--recmac-negro);
  font-size: 2.5rem;
}

.work-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.work-card {
  background-color: var(--recmac-blanco);
  border-top: 3px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card:hover {
  border-top-color: var(--recmac-rojo);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.work-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-title {
  font-size: 1.25rem;
  color: var(--recmac-negro);
  margin-bottom: 8px;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--recmac-gris);
}

/* =========================================
   SECCIÓN 5: POR QUÉ ELEGIRNOS
========================================= */
.why-us {
  background-color: var(--recmac-blanco);
  padding: 80px 20px;
}

.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.why-icon {
  font-size: 32px;
  color: var(--recmac-amarillo);
  margin-bottom: 15px;
}

.why-line {
  width: 40px;
  height: 4px;
  background-color: var(--recmac-rojo);
  margin-bottom: 15px;
}

.why-title {
  font-size: 1.5rem;
  color: var(--recmac-negro);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 1rem;
  color: var(--recmac-gris);
}

/* =========================================
   SECCIÓN 6: CTA URGENCIA FINAL
========================================= */
.final-cta {
  background-color: var(--recmac-amarillo);
  padding: 80px 20px;
  text-align: center;
}

.final-cta-title {
  color: var(--recmac-negro);
  font-size: 3rem;
  margin-bottom: 10px;
}

.final-cta-desc {
  color: var(--recmac-negro);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.final-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta-buttons a {
  padding: 15px 30px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  display: inline-block;
}

.cta-bot-primary {
  background-color: var(--recmac-negro);
  color: var(--recmac-blanco);
}

.cta-bot-whatsapp {
  background-color: var(--recmac-rojo);
  color: var(--recmac-blanco);
}

/* =========================================
   ELEMENTOS ADICIONALES (WHATSAPP Y SCROLL)
========================================= */

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--recmac-blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  animation: float-pulse 2s infinite;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--recmac-blanco);
  opacity: 0.7;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--recmac-blanco);
  border-radius: 11px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--recmac-amarillo);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-ping 1.8s infinite;
}

@keyframes scroll-ping {
  0% {
    top: 6px;
    opacity: 1;
    height: 8px;
  }
  50% {
    top: 18px;
    opacity: 0.5;
    height: 4px;
  }
  100% {
    top: 6px;
    opacity: 0;
    height: 8px;
  }
}

/* =========================================
   FOOTER REDISEÑADO
========================================= */
.site-footer {
  background-color: var(--recmac-negro);
  color: var(--recmac-blanco);
  padding: 60px 20px 30px;
}
.site-footer a {
  color: var(--recmac-blanco);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--recmac-rojo);
}
.site-footer ul {
  list-style: none;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-logo {
  flex: 1.5;
  min-width: 250px;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  display: block;
  margin-bottom: 15px;
}
.site-footer .slogan {
  color: #aaaaaa;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 10px;
}
.footer-links, .footer-contact {
  flex: 1;
  min-width: 200px;
}
.site-footer h4 {
  color: var(--recmac-rojo);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact p {
  color: #aaaaaa;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
}
.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid var(--recmac-rojo);
  padding-top: 25px;
  text-align: center;
}
.footer-bottom p {
  color: #777777;
  font-size: 0.9rem;
}

/* =========================================
   MEJORAS DE TARJETAS DE CATÁLOGO
========================================= */
.catalogo-card img,
.machine-card img,
.card-img-top {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  object-position: center;
}

.catalogo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* =========================================
   CLASES UTILITARIAS RESPONSIVE
========================================= */

/* Page header para subpáginas */
.page-header {
  background-color: var(--recmac-negro);
  color: white;
  padding: 50px 0;
  text-align: center;
}
.page-header h1 {
  color: var(--recmac-blanco);
}
.page-header p {
  color: #ccc;
  margin-top: 8px;
}

/* Grids responsive para subpáginas */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-grid.align-center {
  align-items: center;
}

/* Formulario: clases CSS en lugar de inline styles */
.form-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  min-height: 44px;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--recmac-amarillo);
  box-shadow: 0 0 0 2px rgba(232, 184, 0, 0.2);
}
.form-group .field-error {
  color: var(--recmac-rojo);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--recmac-rojo);
}
.form-group.has-error .field-error {
  display: block;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
  min-height: 44px;
}
.checkbox-grid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  min-height: auto;
}
.form-submit-btn {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  padding: 15px;
  min-height: 52px;
  border: none;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  transition: opacity 0.3s;
}
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-submit-btn .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--recmac-negro);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form message */
.form-message {
  display: none;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
}
.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Map container */
.map-container {
  width: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

/* Contact info styling */
.contact-info h2 {
  color: var(--recmac-rojo);
  margin-bottom: 20px;
}
.contact-block {
  margin-bottom: 30px;
}
.contact-block h3 {
  margin-bottom: 5px;
}

/* Coverage tags */
.coverage-tags {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.coverage-tags li {
  background: var(--recmac-gris-claro);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
}

/* Nosotros image */
.about-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =========================================
   GALERÍA MOSAICO — NOSOTROS
========================================= */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-mosaic .mosaic-item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.gallery-mosaic .mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-mosaic .mosaic-item:hover img {
  transform: scale(1.05);
}

.gallery-mosaic .mosaic-item .mosaic-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 30px 12px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-mosaic .mosaic-item:hover .mosaic-caption {
  opacity: 1;
}

/* Spanning classes */
.mosaic-wide {
  grid-column: span 2;
}
.mosaic-tall {
  grid-row: span 2;
}
.mosaic-big {
  grid-column: span 2;
  grid-row: span 2;
}

/* About text section */
.about-text-section {
  padding: 60px 0;
}
.about-text-section .section-title {
  text-align: left;
  margin-bottom: 20px;
}
.about-intro {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}
.about-intro .review-marker {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Dato concreto in equipment cards */
.card-dato {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-style: italic;
}

/* =========================================
   MEDIA QUERIES — RESPONSIVIDAD
========================================= */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .final-cta-title {
    font-size: 2.2rem;
  }

  /* Header móvil */
  .main-nav {
    display: none !important;
    width: 100%;
    order: 3;
    background-color: var(--recmac-negro);
  }
  .main-nav.active {
    display: block !important;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }
  .main-nav ul li {
    text-align: center;
  }
  .main-nav ul li a {
    display: block;
    padding: 14px 20px;
    min-height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .main-nav ul li a.active {
    background-color: rgba(232, 184, 0, 0.1);
  }
  .header-cta {
    display: none !important;
    width: 100%;
    order: 4;
    padding: 10px 20px 20px;
    background-color: var(--recmac-negro);
  }
  .header-cta.active {
    display: block !important;
  }
  .header-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
    min-height: 44px;
    line-height: 24px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .site-header {
    position: relative;
    z-index: 1000;
  }
  .header-container {
    flex-wrap: wrap;
  }

  /* Grids de subpáginas */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Page header */
  .page-header {
    padding: 35px 0;
  }

  /* Footer móvil */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 35px;
  }
  .footer-logo, .footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Formulario móvil */
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Fallback para inline styles legacy */
  #solicitud-form div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

@media (max-width: 600px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .checkbox-group {
    grid-template-columns: 1fr !important;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  .coverage-tags {
    gap: 8px;
  }
  .coverage-tags li {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  /* Gallery mosaic responsive */
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 580px) {
  #catalog-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }
  .final-cta-buttons {
    flex-direction: column;
  }
  .final-cta-buttons a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-text {
    font-size: 1.05rem;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
  .final-cta-title {
    font-size: 1.8rem;
  }
  .service-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  .hero-content {
    padding: 0 15px;
  }
  .container {
    padding: 0 15px;
  }
  /* Gallery mosaic single column on very small screens */
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .mosaic-wide,
  .mosaic-tall,
  .mosaic-big {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Service badge overlap fix for mobile */
@media (max-width: 768px) {
  .star-item {
    margin-top: 15px;
    padding-top: 20px;
  }
}

/* Hide scroll indicator on very short screens */
@media (max-height: 500px) {
  .scroll-indicator {
    display: none;
  }
}
