/* ==========================================================================
   VARIABLES DE DISEÑO (Oficiales de Omologra)
   ========================================================================== */
:root {
    --primary-color: #095540;    /* Verde corporativo principal (Tu marca) */
    --secondary-color: #4EAF47;  /* Verde manzana vibrante (Para botones y llamadas a la acción) */
    --dark-color: #12221D;       /* Verde casi negro muy elegante para títulos oscuros o fondos */
    --light-color: #F7F9F6;      /* Blanco lino/hueso del fondo del logo para secciones alternas */
    --text-color: #3A4D48;       /* Gris verdoso corporativo para una lectura cómoda en párrafos */
    
    /* Variables de Fuentes */
    --font-titles: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ==========================================================================
   ESTILOS GENERALES Y RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

section {
    scroll-margin-top: 90px; 
}

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

h1, h2, h3, h4 {
    font-family: var(--font-titles);
    color: var(--dark-color);
    font-weight: 700;
}

h2.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 40px;
    color: var(--primary-color);
}

.marca {
    font-weight: bold;
    color: var(--dark-color);
}

/* ==========================================================================
   PÁGINAS LEGALES Y TABLAS
   ========================================================================== */
.legal-content { padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.legal-content h1 { 
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    margin-bottom: 30px; 
    color: var(--primary-color); 
}
.legal-content h2 { 
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    margin: 30px 0 15px 0; 
    color: var(--primary-color); 
}
.legal-content p, .legal-content li { margin-bottom: 15px; color: var(--dark-color); text-align: justify; }
.legal-content ul { margin-left: 20px; margin-bottom: 15px; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}
.legal-content th, .legal-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.legal-content th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-titles);
    text-align: center;
}
.legal-content td {
    color: var(--text-color);
}

.legal-data-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}
.legal-data-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(9, 85, 64, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.logo-img {
    height: 70px;
    width: auto;        
    display: block;     
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

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

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease !important;
}

.btn-nav:hover {
    background: #489c59;
}

.btn-nav1 {
    display: inline-block;
    background: var(--secondary-color);
    color: white !important;
    padding: 3px 10px;
    font-size: 10px;
    text-decoration: none;
    border-radius: 15px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-nav1:hover {
    background: #489c59;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   HERO SECCIÓN
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #2c6e5c 0%, #175444 100%);
    padding: 50px 0;
    border-bottom: 3px solid var(--secondary-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #ffffff; 
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #e2e8f0;
    margin-bottom: 30px;
}

.hero-buttons a {
    text-decoration: none;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 6px;
    display: inline-block;
    margin-right: 15px;
    font-family: var(--font-titles);
    transition: all 0.3s ease;
}

.btn-primary { 
    background-color: #3b824a;
    color: white; 
    border: 2px solid transparent;
}

.btn-primary:hover { 
    background-color: #489c59;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary { 
    background-color: #ffffff; 
    color: #175444; 
    border: 2px solid white;
}

.btn-secondary:hover { 
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px); 
}

.hero-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(9, 85, 64, 0.08);
}

/* ==========================================================================
   SERVICIOS Y COBERTURA
   ========================================================================== */
.services {
    padding: 50px 0;
    background-color: #ffffff;
}

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

.service-card {
    background: var(--light-color);
    padding: 35px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(9, 85, 64, 0.06);
}

.service-card h3 { 
    margin-bottom: 15px; 
    color: var(--primary-color);
}

.coverage {
    background: #ffffff;
    padding: 50px 0;
}

.coverage-layout {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-top: 20px;
}

.coverage-box {
    flex: 1;
    padding: 35px;
    background: var(--light-color);
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(9, 85, 64, 0.03);
    transition: transform 0.3s ease;
}

.coverage-box:hover {
    transform: translateY(-5px);
}

.coverage-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-family: var(--font-titles);
}

.coverage-box p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

.horario-destacado {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-badge {
    background: rgba(9, 85, 64, 0.04);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.service-badge p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   SECCIÓN DE FAQS
   ========================================================================== */
.faqs-section {
    background-color: #ffffff;
    padding: 40px 0;
}

.bloques-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    align-items: start;
}

.bloques {
    width: 100%;
}

.bloques h3 {
    color: var(--dark-color);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faqs-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 3px solid #095543;
    padding-left: 12px;
}

.faq-item {
    background-color: var(--light-color);
    border-left: 2px solid var(--primary-color);
    border-radius: 4px;
    padding: 10px 12px;
    transition: background-color 0.2s ease;
}

.faq-item:hover {
    background-color: #f1f3f5;
}

.faq-question {
    color: var(--dark-color);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    line-height: 1.3;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: 'Ver ▼';
    font-size: 0.75rem;
    font-weight: 500;
    color: #8a9a95; 
white-space: nowrap;
margin-left: 10px;
transition: color 0.2s ease;
}
.faq-item[open] .faq-question::after {
content: 'Ocultar ▲';
color: var(--secondary-color);
}
.faq-answer {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.faq-answer p {
color: var(--text-color);
font-size: 0.82rem;
line-height: 1.5;
margin: 0;
}
.faq-answer strong {
color: var(--primary-color);
}
/* ==========================================================================
ARQUITECTURA DE MOTORES Y AUTOMATISMOS (ESCAPARATE PREMIUM DE 4 COLUMNAS)
========================================================================== */
.motores-section {
padding: 60px 0;
background-color: var(--light-color);
font-family: var(--font-body);
}
.motores-section .section-title {
font-family: var(--font-titles);
color: var(--primary-color);
text-align: center;
font-size: 2.2rem;
margin-bottom: 12px;
}
.motores-section .section-subtitle {
text-align: center;
color: var(--text-color);
max-width: 700px;
margin: 0 auto 40px auto;
font-size: 1rem;
line-height: 1.5;
}
.motores-filtros-contenedor {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin-bottom: 50px;
width: 100%;
}
.fila-filtro-superior {
display: flex;
justify-content: center;
}
.fila-filtro-inferior {
display: flex;
flex-direction: row;
justify-content: center;
gap: 30px;
width: 100%;
}
.btn-filtro {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
background: none;
border: none;
cursor: pointer;
padding: 5px;
transition: transform 0.2s ease;
}
.btn-filtro:hover {
transform: translateY(-3px);
}
.fila-filtro-superior .btn-filtro {
background-color: transparent;
border: 2px solid var(--primary-color);
padding: 10px 24px;
border-radius: 8px;
transition: all 0.3s ease;
}
.fila-filtro-superior .btn-filtro .btn-leyenda {
color: var(--primary-color);
}
.fila-filtro-superior .btn-filtro.active {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.fila-filtro-superior .btn-filtro.active .btn-leyenda {
color: #ffffff;
}
.btn-logo-container {
padding: 14px 28px;
border-radius: 8px;
background-color: #ffffff;
border: 1px solid rgba(18, 34, 29, 0.06);
border-top: 4px solid var(--primary-color);
box-shadow: 0 6px 18px rgba(18, 34, 29, 0.04);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.btn-logo-img {
height: 38px;
width: auto;
object-fit: contain;
}
.btn-leyenda {
font-family: var(--font-titles);
font-size: 0.95rem;
font-weight: bold;
color: var(--text-color);
transition: color 0.3s ease;
}
.fila-filtro-inferior .btn-filtro.active .btn-logo-container {
border-top-color: var(--secondary-color) !important;
box-shadow: 0 6px 20px rgba(78, 175, 71, 0.15);
transform: translateY(-2px);
}
.fila-filtro-inferior .btn-filtro.active .btn-leyenda {
color: var(--dark-color);
}
/* Envoltorio modular del catálogo */
.escaparate-wrapper {
width: 100%;
max-width: 1140px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 35px;
}
.bloque-familia {
width: 100%;
}
.categoria-label-superior {
font-family: var(--font-titles);
color: var(--text-color);
font-size: 1.25rem;
margin: 30px 0 20px 0;
padding: 10px 15px;
border: 2px solid var(--secondary-color) !important;
border-radius: 8px;
font-weight: bold;
width: 100%;
text-align: left;
}
/* La cuadrícula de 4 columnas simétrica */
.motores-grid-cuatro {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
width: 100%;
}

/* Botón de "Ver gama" integrado al final de la propia tarjeta */
.btn-ver-gama-card {
  width: 100%;
  background-color: transparent;
  color: var(--primary-color);
  font-family: var(--font-titles);
  border: none;
  border-top: 1px dashed rgba(18, 34, 29, 0.1);
  padding: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-ver-gama-card:hover {
  background-color: rgba(9, 85, 64, 0.03);
  color: var(--secondary-color);
}

.btn-ver-gama-card.activa,
.btn-ver-gama-card.activa:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.motor-card.activa {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 20px rgba(9, 85, 64, 0.15);
}

/* Los bloques inferiores que guardan las gamas completas */
.gama-desplegable-bloque {
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid rgba(18, 34, 29, 0.06);
    padding-top: 15px;
    animation: fadeInGama 0.3s ease;
}

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

/* Cuando se despliega la gama inferior */
.gama-desplegable-bloque.abierto {
  margin-top: 30px;
  border-top: 1px solid rgba(18, 34, 29, 0.06);
  padding-top: 15px;
}

/* Estilos de las tarjetas de motores */
.motor-card {
background: #ffffff;
border-radius: 12px;
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(18, 34, 29, 0.06);
border-top: 4px solid var(--primary-color) !important;
border-left: 1px solid rgba(18, 34, 29, 0.06) !important;
box-shadow: 0 6px 18px rgba(18, 34, 29, 0.04);
width: 100%;
}
.motor-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 28px rgba(18, 34, 29, 0.08);
border-left-color: var(--secondary-color);
}
.motor-card.oculto {
display: none !important;
}

.badge-marca {
  width: 100%;
  display: flex;         /* Alineación horizontal perfecta del logo y el texto */
  align-items: center;   /* Centrado vertical de los dos elementos */
  gap: 12px;             /* Separación entre la imagen y la palabra */
  padding: 14px 18px;    /* Espacio interno para que respire la cabecera */
  background-color: #ffffff; 
  border-bottom: 1px solid rgba(18, 34, 29, 0.05); /* Fina línea divisoria antes de empezar la foto */
  box-sizing: border-box;
}

.badge-marca .logo-marca-img {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
}

.badge-tipo-texto {
  font-family: var(--font-titles);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-color); /* Hereda tu gris verdoso corporativo */
  letter-spacing: 0.5px;
  border-left: 1px solid rgba(18, 34, 29, 0.15); /* Una sutil línea vertical que separa el logo del texto */
  padding-left: 12px; /* Distancia entre la línea divisoria y la palabra */
}

.marca-dea, .marca-nice {
background-color: #ffffff;
}
.logo-marca-img {
height: 24px;
width: auto;
display: block;
object-fit: contain;
}
.motor-img-placeholder {
width: 100%;
height: 150px;
background-color: #edf1ee;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-color);
font-size: 0.85rem;
padding: 10px;
box-sizing: border-box;
}
.motor-img-placeholder img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.motor-info {
padding: 16px 18px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.motor-info h3 {
font-family: var(--font-titles);
color: var(--dark-color);
margin: 0 0 6px 0;
font-size: 1.1rem;
line-height: 1.3;
}
.motor-info p {
color: var(--text-color);
font-size: 0.85rem;
line-height: 1.4;
margin-bottom: 16px;
flex-grow: 1;
}
.motor-footer {
display: flex;
justify-content: center;
align-items: center;
margin-top: auto;
border-top: 1px solid rgba(18, 34, 29, 0.06);
padding-top: 12px;
width: 100%;
}
.btn-comprar {
background-color: var(--secondary-color);
color: #ffffff;
font-family: var(--font-titles);
text-decoration: none;
cursor: pointer;
padding: 9px 5px;
border-radius: 6px;
font-weight: bold;
font-size: 0.85rem;
text-align: center;
width: 100%;
display: block;
transition: background-color 0.2s ease, transform 0.2s ease;
border: none;
}
.btn-comprar:hover {
background-color: #3f9639;
transform: translateY(-1px);
}
.ver-mas-bloque-contenedor {
text-align: center;
margin-top: 25px;
width: 100%;
display: flex;
justify-content: center;
}
.btn-ver-gama {
display: inline-block;
background-color: transparent;
color: var(--primary-color);
font-family: var(--font-titles);
border: 2px solid var(--primary-color);
padding: 10px 24px;
font-size: 0.85rem;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-ver-gama:hover {
background-color: var(--primary-color);
color: #ffffff;
box-shadow: 0 4px 12px rgba(18, 34, 29, 0.08);
transform: translateY(-1px);
}
.motor-card.oculto {
display: none !important;
}
/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact {
    padding: 50px 0;
    background: #ffffff;
}

.contact-subtitle { text-align: center; margin-bottom: 40px; color: var(--text-color); font-size: 1.1rem; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(9, 85, 64, 0.05);
    border: 1px solid rgba(9, 85, 64, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 85, 64, 0.15);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: 2px solid transparent;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font-titles);
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #489c59;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 85, 64, 0.15);
}

.form-legal-checkbox {
  margin-top: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.form-legal-checkbox input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-legal-checkbox label {
  font-size: 14px;
  line-height: 1.4;
  margin-left: 8px;
  cursor: pointer;
  color: var(--dark-color);
}

.form-legal-checkbox a {
  color: var(--primary-color); 
  text-decoration: underline;
  font-weight: 600;
}

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

.form-legal-info {
  background-color: var(--light-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: left;
}

.form-legal-info p {
  font-size: 11px;
  color: #555555;
  margin: 0 0 6px 0;
}

.form-legal-info p strong {
    color: var(--dark-color);
}

.form-legal-info ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.form-legal-info ul li {
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
    margin-bottom: 3px;
}

.form-legal-info ul li strong {
    color: var(--dark-color);
}

.form-legal-info ul li:last-child {
  margin-bottom: 0;
}

#contacto {
    scroll-margin-top: 180px;
    padding-top: 20px;
}

#contacto-titulo {
    margin-top: 0px;
    margin-bottom: 12px;
    text-align: center;
}

#contacto-texto {
    margin-top: 0px;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: #a0aec0;
    padding: 50px 0 25px 0;
    font-size: 0.8rem;
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item:hover {
    color: white !important;
}

.spec-location {
    align-items: flex-start;
}

.spec-location i {
    margin-top: 3px;
}

.footer {
    text-align: center;
}
.footer-map {
    width: 100%;
}

.footer-map iframe {
    display: block;
    height: 100%;
    min-height: 200px;
    border-radius: 10px;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 25px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 400;
    padding: 2px 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.footer a:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.footer .separator {
    color: #4a5568;
    font-size: 0.75rem;
    user-select: none;
}

/* ==========================================================================
   BOTÓN VOLVER ARRIBA Y BANNER DE COOKIES
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #ffffff !important;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(78, 175, 71, 0.3);
}

.cookie-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 850px;
    background-color: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

.cookie-content p a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-btn {
    font-family: var(--font-titles);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cookie-btn.btn-reject {
    background-color: transparent;
    border-color: #a0aec0;
    color: #e2e8f0;
}

.cookie-btn.btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    color: #ffffff;
}

.cookie-btn.btn-accept {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.cookie-btn.btn-accept:hover {
    background-color: #3b824a;
}

/* ==========================================================================
   PÁGINA DE GRACIAS
   ========================================================================== */
.thanks-wrapper {
    background-color: #f8f9fa;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.thanks-card {
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.thanks-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.thanks-card h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.thanks-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.thanks-card .thanks-highlight {
    background-color: rgba(0, 89, 68, 0.03);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    text-align: left;
    margin: 25px 0;
}

.thanks-card .thanks-highlight strong {
    color: var(--primary-color);
}

.thanks-actions {
    margin-top: 25px;
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* ==========================================================================
   ADAPTACIONES RESPONSIVE COMPLETAS Y SIN CONFLICTOS
   ========================================================================= */
@media (max-width: 992px) {
    .bloques-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .motores-grid-cuatro,
    .gama-completa {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gama-completa {
        grid-column: span 2 !important;
    }
}

@media (max-width: 768px) {
    /* Menú móvil Omologra Estructura Real */
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 0 !important;
        width: 100% !important;
    }

    .logo-img {
        max-height: 40px !important;
        height: 40px !important;
        width: auto !important;
        margin-bottom: 8px !important;
    }
    
    .nav {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .nav a:not(.btn-nav) {
        display: block !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        padding: 4px 0 !important;
    }

    .nav a.btn-nav {
        grid-column: 1 / span 5 !important;
        justify-self: center !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 160px !important;
        padding: 8px 16px !important;
        margin-top: 10px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    .nav a.btn-nav1 {
        grid-column: 1 / span 5 !important;
        justify-self: center !important;
        width: fit-content !important;
        padding: 6px 16px !important;
        margin: 8px auto 0 auto !important;
        white-space: nowrap !important;
    }

    /* Coberturas y Hero en móvil */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
.hero-text, .hero-image {
max-width: 100%;
}
.hero-text {
text-align: center;
}
.hero-buttons a {
margin: 10px;
}
.coverage-layout {
flex-direction: column;
gap: 20px;
}
.legal-content {
padding: 40px 20px;
}
.legal-content p, .legal-content li {
text-align: left;
}
/* Catálogo de motores en 1 sola columna móvil */
.motores-grid-cuatro,
.gama-completa {
grid-template-columns: 1fr !important;
gap: 25px !important;
}
.gama-completa {
grid-column: span 1 !important;
}
.motor-card {
max-width: 100%;
width: 100%;
}
.categoria-label-superior {
font-size: 1.15rem;
margin: 30px 0 15px 0;
}
/* FAQs y footer en móvil */
.faqs-section {
padding: 40px 0;
}
.faq-item {
padding: 14px 16px;
}
.faq-question {
font-size: 1rem;
}
.faq-question::after {
content: 'Ver  ▼';
font-size: 0.75rem;
}
.faq-item[open] .faq-question::after {
content: 'Cerrar  ▲';
}
.faq-answer p {
font-size: 0.9rem;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 35px;
padding: 0 25px;
}
.footer-col h3 {
text-align: center;
margin-bottom: 25px;
}
.contact-info {
align-items: flex-start;
max-width: 280px;
margin: 0 auto;
text-align: center;
}
.footer-map {
width: 100%;
display: flex;
justify-content: center;
}
.footer-map iframe {
width: 100% !important;
margin: 0 auto;
}
.scroll-to-top {
bottom: 20px;
right: 20px;
width: 38px;
height: 38px;
font-size: 14px;
opacity: 0.85;
}
}
@media (max-width: 600px) {
.cookie-container {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 92%;
padding: 20px;
}
.cookie-buttons {
flex-direction: column;
width: 100%;
gap: 10px;
}
.cookie-btn {
width: 100%;
text-align: center;
}
}
@media (max-width: 500px) {
.fila-filtro-inferior {
gap: 15px;
}
.btn-logo-container {
padding: 10px 20px;
}
.btn-logo-img {
height: 30px;
}
}
@media (max-width: 480px) {
.footer-links {
flex-direction: column;
gap: 12px;
}
.footer .separator {
display: none;
}
.thanks-wrapper {
padding: 40px 15px;
}
.thanks-card {
padding: 30px 20px;
}
.thanks-card h1 {
font-size: 1.4rem;
}
}

.motor-tag {
  display: inline-block;
  align-self: flex-start; /* Hace que el fondo solo ocupe lo que mide la palabra */
  font-family: var(--font-titles);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--primary-color); /* Tu verde corporativo principal */
  background-color: rgba(9, 85, 64, 0.05); /* Un fondo verde ligerísimo casi transparente */
  padding: 4px 12px;
  border-radius: 50px; /* Formato píldora redondeada */
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   TARJETAS HORIZONTALES DE GAMA DESPLEGABLE (OMOLOGRA)
   ========================================================================== */
.motores-lista-horizontal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 15px;
}

.card-ficha-horizontal {
  display: grid;
  grid-template-columns: 210px 1fr 220px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(18, 34, 29, 0.08);
  border-top: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 18px 24px;
  gap: 24px;
  box-shadow: 0 6px 18px rgba(18, 34, 29, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-ficha-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 34, 29, 0.08);
}

/* Columna 1: Imagen limpia del motor */
.ficha-media {
  position: relative;
  background-color: #edf1ee;
  border-radius: 8px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ficha-media img.producto-img {
  max-width: 100%;
  max-height: 115px;
  object-fit: contain;
}

/* Columna 2: Encabezado (Logo + Título + Etiqueta) y Especificaciones */
.ficha-header-linea {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.logo-marca-inline {
  height: 20px;
  width: auto;
  object-fit: contain;
  padding-right: 12px;
  border-right: 1px solid rgba(18, 34, 29, 0.15);
}

.ficha-header-linea h3 {
  font-family: var(--font-titles);
  color: var(--dark-color);
  margin: 0;
  font-size: 1.2rem;
}

.badge-uso {
  font-family: var(--font-titles);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  background-color: rgba(9, 85, 64, 0.08);
  color: var(--primary-color);
  letter-spacing: 0.4px;
}

.ficha-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.spec-pill .icono {
  background-color: var(--light-color);
  border: 1px solid rgba(9, 85, 64, 0.12);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.spec-pill .datos span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-color);
}

.spec-pill .datos strong {
  color: var(--dark-color);
  font-weight: 700;
}

/* Columna 3: Botón Presupuesto */
.ficha-accion {
  border-left: 1px solid rgba(18, 34, 29, 0.08);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 8px;
}

/* Adaptación a móviles */
@media (max-width: 850px) {
  .card-ficha-horizontal {
    grid-template-columns: 1fr;
  }
  .ficha-accion {
    border-left: none;
    border-top: 1px solid rgba(18, 34, 29, 0.08);
    padding-left: 0;
    padding-top: 15px;
  }
}

.gama-desplegable-bloque h2,
.gama-desplegable-bloque h3 {
  text-align: center;
  border-left: none; /* Quita la línea verde de la izquierda */
  padding-left: 0;
  margin-bottom: 30px;
  position: relative;
}

/* Añade una línea verde centrada debajo del título */
.gama-desplegable-bloque h2::after,
.gama-desplegable-bloque h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #165b3c;
  margin: 10px auto 0;
  border-radius: 2px;
}

.cabecera-categoria-motor {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    margin: 20px 0 16px 0;
    border: 1.5px solid var(--secondary-color);
    border-radius: 8px;
    background-color: rgba(22, 91, 60, 0.03);
}

.gama-desplegable-bloque h3.categoria-label-superior {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-color);
    text-align: left !important;
    line-height: 1.2 !important;
    flex-shrink: 0;
}

.descripcion-categoria-motor {
    margin: 0 !important;
    padding-left: 18px;
    border-left: 1px solid rgba(22, 91, 60, 0.2);
    font-size: 0.82rem !important;
    color: #5a6560;
    text-align: left !important;
    line-height: 1.35 !important;
}

.gama-desplegable-bloque,
h3.categoria-label-superior {
  scroll-margin-top: 120px; /* Ajusta este valor según la altura de tu cabecera/menú */
}

.btn-cerrar-gama-abajo {
  display: block;
  margin: 30px auto 10px auto; /* Lo centra horizontalmente y le da aire arriba */
  padding: 12px 28px;
  background-color: #ffffff;
  color: var(--primary-color);
  font-family: var(--font-titles);
  font-size: 0.9rem;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  border-radius: 50px; /* Bordes redondeados tipo píldora, modernos y limpios */
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-cerrar-gama-abajo:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(9, 85, 64, 0.2);
}

/* Botón "Ver ficha técnica" debajo de Solicitar Presupuesto */
.ficha-accion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.btn-saber-mas {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-saber-mas:hover {
  background-color: rgba(9, 85, 64, 0.08);
}

/* Fondo oscuro del Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 29, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

/* Caja blanca central del Modal */
.modal-contenido {
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.25s ease;
}

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

.modal-cerrar {
  position: absolute;
  top: 15px;
  right: 18px;
  background: #f2f4f3;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
}

.modal-cerrar:hover {
  background: #e0e5e3;
}

/* Diseño interno en 2 columnas */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.modal-img-box {
  background: #f7f9f8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
}

#modalImagen {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.modal-img-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
}

.modal-badge-logo {
  position: absolute;
  top: 14px;
  left: 14px;
  max-height: 28px;
  max-width: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 2;
}
.modal-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-detalles h2 {
  font-family: var(--font-titles);
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #12221d;
}

.modal-detalles p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a5552;
  margin-bottom: 16px;
}

.modal-detalles h4 {
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  color: #12221d;
}

.modal-specs-list {
  margin: 0 0 18px 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #333;
}

.modal-specs-list li {
  margin-bottom: 5px;
}

.modal-kit-box {
  background: #f0f7f4;
  border-left: 3px solid var(--primary-color);
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}

.modal-kit-box p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
}

.modal-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-badge-logo {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  width: auto !important;
  height: 28px !important;
  max-width: 95px !important;
  object-fit: contain !important;
  z-index: 5;
  margin: 0 !important;
}

.btn-presupuesto-modal {
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-pdf-modal {
  background: #f4f4f4;
  color: #333;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #ddd;
}

/* Adaptación a móvil */
@media (max-width: 680px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* 2. Oculta todas las líneas verdes (en categoría y en motores) */
.gama-desplegable-bloque h2::after,
.gama-desplegable-bloque h3::after,
.gama-desplegable-bloque h4::after,
.gama-desplegable-bloque h2 *::after,
.gama-desplegable-bloque h3 *::after,
.gama-desplegable-bloque h4 *::after,
.categoria-label-superior::after,
.categoria-label-superior *::after {
  display: none !important;
  content: none !important;
}

/* 3. Centra el nombre del motor con el logotipo y ajusta el scroll en móvil */
.gama-desplegable-bloque h2:not(.categoria-label-superior),
.gama-desplegable-bloque h3:not(.categoria-label-superior),
.gama-desplegable-bloque h4:not(.categoria-label-superior) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2 !important;
  align-self: center !important;
}

.gama-desplegable-bloque,
h3.categoria-label-superior {
  scroll-margin-top: 160px !important;
}

.categoria-label-superior svg,
.categoria-label-superior img,
.categoria-label-superior i,
.icono-puerta {
  height: 55px !important;
  width: 55px !important;
  max-width: 55px !important;
  max-height: 55px !important;
  font-size: 55px !important;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid rgba(22, 91, 60, 0.2);
  border-radius: 8px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

/* En móviles: apila el título arriba y la descripción abajo */
@media (max-width: 768px) {
  .cabecera-categoria-motor {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin: 14px 0 12px 0;
  }

  .gama-desplegable-bloque h3.categoria-label-superior {
    font-size: 0.88rem !important;
    gap: 12px;
  }

  .categoria-label-superior svg,
  .categoria-label-superior img,
  .categoria-label-superior i,
  .icono-puerta {
    width: 55px !important; /* Icono grande y reconocible */
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    font-size: 55px !important;
  }

  .descripcion-categoria-motor {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(22, 91, 60, 0.15);
    padding-top: 6px;
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }
}

/* 1. Píldora del modelo: en una sola línea para que no desplace el título de Abatibles */
.motores-grid-cuatro .motor-tag {
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
}

/* 2. Título de categoría: menos pesado y en un tono oscuro integrado con tu marca */
.motores-grid-cuatro .motor-info h3 {
  font-size: 1.05rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 10px 0 6px 0;
  line-height: 1.25;
}

/* 3. Descripción: más ligera y sutil para no competir con el título */
.motores-grid-cuatro .motor-info p {
  font-size: 0.84rem;
  color: #5c6864;
  line-height: 1.45;
  margin-bottom: 0;
}

.categoria-label-superior {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icono-categoria {
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  flex-shrink: 0;
}