/* ===== RESET Y CONFIGURACIÓN GENERAL ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-sm: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
}

/* ===== HEADER PRINCIPAL ===== */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: #fff;
    padding: 5px;
}

.main-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 3px;
}

.contact-header {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== NAVEGACIÓN (ESCRITORIO) ===== */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ===== BANNER PRINCIPAL ===== */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('Fondo1.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    width: 100%;
    padding: 60px 0;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature i {
    color: var(--secondary-color);
}

/* ===== BOTONES ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

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

.btn-secondary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

/* ===== SECCIONES GENERALES ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 25px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== SERVICIOS ===== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.feature-card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: white;
    border-left-color: var(--accent-color);
}

.feature-card.highlight .feature-title,
.feature-card.highlight .feature-description {
    color: white;
}

.feature-card.highlight .feature-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.feature-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.feature-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.feature-description {
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    margin-top: 30px;
}

.cta-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-box .btn-primary {
    background-color: white;
    color: var(--secondary-color);
    font-weight: 700;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-box .btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== SOBRE NOSOTROS ===== */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-description {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
}

.about-description strong {
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.about-contact {
    margin-top: 30px;
}

.about-image {
    flex: 0 0 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* ===== MARCAS ===== */
.brands-section {
    padding: 80px 0;
    background-color: #fff;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.brand-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.brand-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== CONTACTO REDISEÑADO ===== */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid-redesign {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-redesign {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card-redesign {
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-icon-redesign {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(52,152,219,0.2);
}

.contact-details-redesign h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-details-redesign p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details-redesign small {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.contact-map-redesign {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.map-wrapper {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0 15px;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--gray-color);
    text-align: center;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    background-color: white;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    gap: 12px;
}

.footer-links i {
    font-size: 0.8rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-top: 3px;
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== BOTÓN SUBIR ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== ESTILOS ADICIONALES (enlaces, etc.) ===== */
.contact-enlace, .contact-enlace-mapa, .contact-enlace-email {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
}

.contact-enlace:hover, .contact-enlace-mapa:hover, .contact-enlace-email:hover {
    transform: translateY(-2px);
}

.contact-enlace:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.contact-enlace-mapa:hover {
    color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.contact-enlace-email:hover {
    color: #d35400;
    background-color: rgba(211, 84, 0, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-header {
        display: none;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin-top: 40px;
    }
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .cta-content h3 {
        font-size: 1.6rem;
    }
}

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

    /* --- MENÚ STICKY QUE EMPUJA EL CONTENIDO --- */
    .main-nav {
        position: sticky;
        top: 100px;               /* justo debajo del header (ajústalo si cambia la altura del header) */
        width: 100%;
        background-color: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        z-index: 99;             /* por debajo del header (z‑index: 1000) */
    }

    .main-nav.active {
        max-height: 500px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Resto de ajustes móviles */
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    .feature-card {
        padding: 25px 20px;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .contact-grid-redesign {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-card-redesign {
        padding: 20px;
        gap: 15px;
    }
    .contact-icon-redesign {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    .contact-details-redesign h3 {
        font-size: 1.2rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .features-section {
        padding: 60px 0;
    }
    .feature-title {
        font-size: 1.3rem;
    }
    .cta-content h3 {
        font-size: 1.4rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
}

/* ===== MEJORAS SEO Y ACCESIBILIDAD ===== */
article, section, aside, nav {
    display: block;
}

.about-description, .feature-description {
    text-align: justify;
    hyphens: auto;
}

.btn-primary, .btn-secondary {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    .hero-banner {
        background-size: cover;
        background-position: center;
    }
}

[itemprop="telephone"] {
    text-decoration: none;
    color: inherit;
}

[itemprop="telephone"]:hover {
    color: var(--secondary-color);
}

.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 25px;
    border-radius: 2px;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}