/* Resets básicos y variables CSS */
:root {
    --primary-color: #338b85; /* Un azul profesional */
    --secondary-color: #5dc1b9;
    --accent-color: #a77728; /* Color para botones de acción o elementos destacados */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #fff;
    --font-family-sans: 'Arial', sans-serif; /* Placeholder, usar la fuente de su branding */
    --font-family-serif: 'Georgia', serif; /* Placeholder */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    margin-bottom: 15px;
    color: var(--secondary-color);
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ESTILOS DEL BUSCADOR MODERNO */
.buscador {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.form-busqueda {
    display: flex;
    width: 100%;
    position: relative;
}

.input-busqueda {
    flex: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-busqueda:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(51, 139, 133, 0.2);
    transform: translateY(-1px);
}

.input-busqueda::placeholder {
    color: var(--dark-gray);
    opacity: 0.7;
}

.btn-busqueda {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.btn-busqueda:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

.btn-busqueda:active {
    transform: translateY(-50%) scale(0.95);
}

.buscador {
    order: 1;
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}


/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--white);
    padding: 0px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.500);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav {
    order: 3;
    flex: 0 0 auto;
}
/* Reducir tamaño de las tres claves */
.main-nav h2 {
    font-size: 1.1em;
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.logo {
    order: 2;
    flex: 0 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
}

.logo-img {
    height: 100px; 
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    font-family: var(--font-family-serif);
}

.firma a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
}

.firma-img {
    height: 100px; /* Ajustar según el logo real */
    margin-right: 10px;
}

.firma-text {
    font-size: 1.8em;
    font-weight: bold;
    font-family: var(--font-family-serif);
}

.main-nav .nav-list {
    text-transform: uppercase;
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin: 10px;
}

.main-nav .nav-list a {
    font-weight: bold;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1.0em;
    padding: 1px 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Ocultar por defecto en escritorio */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- SECCIONES GENERALES --- */


.section-description {
    max-width: 800px;
    margin: 0 auto 10px auto;
    font-size: 1.1em;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0,0,0,0.6)), url('../images/hero-placeholder.jpg'); /* Fondo Hero */
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--secondary-color);
    padding: 10px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    text-align: left;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-content h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    opacity: 0.9;
}

.hero-image {
    flex: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .profile-photo {
    width: 300px; /* Ajustar */
    height: 300px; /* Ajustar */
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: var(--white);
    text-align: left;
    padding: 100px 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image .office-photo {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- SERVICES SECTION --- */
.services-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    filter: invert(100%) brightness(60%) contrast(150%);
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-item p {
    color: var(--dark-gray);
}

/* --- HOW WE WORK SECTION --- */
.how-we-work-section {
    background-color: var(--white);
    padding: 100px 0;
}

.work-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.step-item {
    text-align: center;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.step-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.step-item p {
    color: var(--dark-gray);
}

.value-proposition {
    margin-top: 20px;
    padding: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.value-proposition .btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.value-proposition .btn:hover {
    background-color: #218838;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 50px auto 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-card .client-name {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 20px;
}

.testimonial-card .client-role {
    display: block;
    color: var(--dark-gray);
    font-size: 0.9em;
}

/* --- BLOG SECTION --- */
.blog-section {
    padding: 100px 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-post-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-card h3 {
    font-size: 1.4em;
    padding: 20px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.blog-post-card p {
    padding: 0 20px 20px 20px;
    color: var(--dark-gray);
}

.blog-post-card .read-more {
    display: block;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.blog-post-card .read-more:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.view-all-posts {
    margin-top: 50px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 50px 0;
    text-align: left;
}

.contact-section h2 {
    color: var(--text-color);
}

.contact-section .section-description {
    color: var(--text-color);
}

.contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.contact-form-area, .contact-info-area {
    background-color: var(--secondary-colors);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.contact-form-area h3, .contact-info-area h3 {
    color: var(--text-color);
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    background-color: var(--accent-color);
}

.contact-form .btn-primary:hover {
    background-color: #218838;
}

.contact-form small {
    display: block;
    margin-top: 15px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}

.status-message {
            padding: 12px;
            border-radius: 6px;
            margin-top: 20px;
            text-align: center;
            display: none;
        }
        
        .success {
            background: #d4edda;
            color: #155724;
            display: block;
        }
        
        .error {
            background: #f8d7da;
            color: #721c24;
            display: block;
        }
        
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }


.contact-info-area p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: rgba(255,255,255,0.9);
}

.contact-info-area p strong {
    color: var(--white);
}

.contact-info-area a {
    color: var(--white);
    text-decoration: underline;
}

.social-media {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-media img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: translateY(-5px);
}

.additional-services {
    margin-top: 40px;
}

.additional-services ul {
    list-style: none;
    padding-left: 0;
}

.additional-services ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 1.1em;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
}

.main-footer a {
    color: var(--white);
    text-decoration: underline;
}

.main-footer a:hover {
    text-decoration: none;
}

.btn {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: bold;
            text-align: center;
            transition: background-color 0.3s ease, color 0.3s ease;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white);
            width: 100%;
        }
        
        .btn-primary:hover {
            background-color: var(--secondary-color);
        }


/* --- SPECIALTIES SECTION --- */
.specialties-section {
    background-color: var(--light-gray);
    padding: 100px 0;
    overflow: hidden;
}

.specialties-carousel {
    position: relative;
    max-width: 100%;
    margin: 50px auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.specialty-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.specialty-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-front {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
}

.card-back {
    background: linear-gradient(135deg, var(--secondary-color), #d4af37);
    transform: rotateY(180deg);
}

.specialty-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-prev, .carousel-next {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Efecto de profundidad para las tarjetas */
.specialty-card {
    transition: transform 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
}



/* --- Media Queries para Responsividad (Mobile First) --- */
@media (max-width: 992px) {
    .specialty-card {
        flex: 0 0 calc(50% - 20px);
    }

    .main-header .container {
        flex-direction:row;
        gap: 5px;
        padding: 5px 0;
    }
    
    .logo, .buscador, .main-nav {
        order: initial;
        flex:content;
        margin: 5px 0;
    }
    
    .buscador {
        max-width: 80%;
        width: 80%;
        margin: 10px 0;
    }
    
    .main-nav h2 {
        font-size: 1em;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 20px 0;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-gray);
        color: var(--text-color);
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .main-nav .nav-list a:hover {
        background-color: var(--light-gray);
        color: var(--primary-color);
    }

    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Altura del header */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding-bottom: 20px;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
        color: var(--text-color);
    }

    .main-nav .nav-list a:hover {
        background-color: var(--light-gray);
    }

    .nav-toggle {
        display: block;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-image .profile-photo {
        width: 250px;
        height: 250px;
    }

    .about-section .container {
        flex-direction: column-reverse; /* Imagen abajo, texto arriba */
    }

    .about-image {
        margin-bottom: 40px;
    }

    .about-content {
        max-width: 100%;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 2.8em; }
    .hero-content h2 { font-size: 1.5em; }
    h2 { font-size: 1.8em; }
}

.instagram-color {
  filter: invert(28%) sepia(99%) saturate(745%) hue-rotate(310deg) brightness(98%) contrast(95%);
}
.linkedin-color {
  filter: invert(14%) sepia(91%) saturate(749%) hue-rotate(178deg) brightness(95%) contrast(90%);
}
.whatsapp-color {
  filter: invert(39%) sepia(98%) saturate(749%) hue-rotate(85deg) brightness(95%) contrast(90%);
}
.facebook-color {
  filter: invert(24%) sepia(98%) saturate(749%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

.logo-bn {
    height: 120px; 
    margin-right: 10px;
    position: relative;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 207, 18, 0.4);
    text-decoration: none;
    color: white;
}

.btn-whatsapp img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    section {
        padding: 20px 0;
    }

    .specialty-card {
        flex: 0 0 100%;
        height: 350px;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .carousel-prev, .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }

    .hero-content h1 { font-size: 2.2em; }
    .hero-content h2 { font-size: 1.3em; }
    .hero-content p { font-size: 1.1em; }

    .service-grid, .work-steps, .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .logo-text { font-size: 1.5em; }
    .logo-img { height: 80px; }

    .firma-text { font-size: 1.5em; }
    .firma-img { height: 35px; }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .input-busqueda {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }
    
    .btn-busqueda {
        width: 35px;
        height: 35px;
    }
    
    .main-nav h2 {
        font-size: 0.9em;
    }
}

/* --- Menú Hamburguesa --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Estado activo del hamburguesa */
.nav-toggle.open .hamburger {
    background-color: transparent;
}

.nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}


.servicios-relacionados {
  display: inline;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .servicios-relacionados {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servicios-relacionados {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- PRODUCTOS RELACIONADOS --- */
.servicios-relacionados {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.servicios-relacionados h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.grid-relacionados {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card-servicio-mini {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card-servicio-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-servicio-mini img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid var(--light-gray);
}

.card-servicio-mini .info-mini {
    padding: 15px 10px;
}

.card-servicio-mini h4 {
    font-size: 1em;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.precio-mini {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.btn-ver {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.btn-ver:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* Responsive para productos relacionados */
@media (max-width: 1200px) {
    .grid-relacionados {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-relacionados {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-relacionados {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-servicio-mini img {
        height: 120px;
    }
    
    .card-servicio-mini .info-mini {
        padding: 10px 8px;
    }
    
    .card-servicio-mini h4 {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .grid-relacionados {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}