* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1da754;
    --dark-green: #0f7d3d;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --text-gray: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #062b1a;
    /* Verde oscuro */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: bold;
}

.header-logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
}

.header-contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.logo h1 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.logo p {
    color: #e0e0e0;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: pointer;
}

.logo p:hover {
    color: #cadc00;
}

.logo h1 {
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo h1:hover {
    color: #cadc00;
}

.navbar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: #cadc00;
    transform: translateY(-1px);
}

.nav-link.active,
.nav-link:focus {
    color: #cadc00;
}

/* Hero Section */
.hero {
    background-color: #081f0f;
    min-height: 75vh;
    color: white;
    min-height: 75vh;
    padding: 80px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23, 98, 54, 0.40); /* Soft transparent green overlay to keep text readable */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-in-out;
    transform: scale(1.05);
}

.hero-carousel .hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(7, 39, 22, 0) 0%, rgba(7, 39, 22, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
}

.hero-text {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f5f5f5;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-text h1 {
    font-size: clamp(52px, 5vw, 72px);
    line-height: 1.02;
    margin-bottom: 22px;
    font-weight: 900;
    letter-spacing: -0.05em;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-text p {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 35px;
    max-width: 630px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-green {
    background-color: var(--primary-green);
    color: white;
}

.btn-green:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 167, 84, 0.3);
}

.btn-white {
    background-color: white;
    color: var(--primary-green);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
}

.btn-outline:hover,
.btn-outline:focus {
    color: white;
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 167, 84, 0.3);
}

.btn-outline:active {
    color: white;
    border-color: var(--dark-green);
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 167, 84, 0.3);
}

.btn-asesoria {
    background-color: #cadc00;
    color: #062b1a;
    /* Letra oscura para contrastar con el verde lima claro */
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 15px;
    text-align: center;
    line-height: 1.2;
}

.btn-asesoria:hover {
    background-color: #b4c400;
    color: #041f12;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(202, 220, 0, 0.4);
}

.whatsapp-side-btn {
    position: fixed;
    right: 20px;
    top: 140px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-side-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #0f3e1e;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(29, 167, 84, 0.15);
}

.service-card-img-container {
    overflow: hidden;
    width: 100%;
    height: 220px;
    position: relative;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, #15a346 100%);
}

.service-card h3 {
    color: var(--dark-gray);
    padding: 25px 25px 10px;
    font-size: 19px;
    line-height: 1.3;
}

.service-card p {
    padding: 0 25px 20px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 25px 30px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card-btn:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Animated background for Servicios Destacados */
#servicios-page {
    background: linear-gradient(135deg, #32552e 0%, #0b5a04 100%); /* Different dark gradient */
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

#servicios-page .container {
    position: relative;
    z-index: 2;
}

#servicios-page .section-title {
    color: #cadc00;
}

#servicios-page .section-title::after {
    background-color: #cadc00;
}

/* Vertical layout specific to Quienes page */
#quienes-page {
    background: linear-gradient(135deg, #146ea1 0%, #137931 100%);
    position: relative;
    overflow: hidden;
    color: #e0e0e0;
}

#quienes-page .container {
    position: relative;
    z-index: 2;
}

#quienes-page .about-text h2 {
    color: #cadc00;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#quienes-page .about-text p {
    color: #e0e0e0;
}

#quienes-page .about-text strong {
    color: #ffffff;
}

/* Animated Meteors */
.meteor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, rgba(202, 220, 0, 0) 0%, rgba(202, 220, 0, 1) 100%);
    box-shadow: 0 0 10px rgba(202, 220, 0, 0.8), 0 0 20px rgba(202, 220, 0, 0.4);
    transform: rotate(-45deg);
    animation: meteor-fall linear infinite;
    opacity: 0;
}

.meteor::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #cadc00;
    box-shadow: 0 0 15px 3px #cadc00;
}

@keyframes meteor-fall {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(200px);
    }
    10% {
        opacity: 1;
    }
    20% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-1500px);
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-1500px);
    }
}

.about-content-vertical {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-content-vertical .about-text {
    width: 100%;
}

.about-content-vertical .about-text h2 {
    text-align: center;
}

.about-content-vertical .about-text .btn {
    display: table;
    margin: 30px auto 0;
}

/* Automatic Web Carousel */
.about-carousel {
    position: relative;
    scroll-margin-top: 110px;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out;
    transform: scale(1.05);
}

.about-carousel img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

@media (max-width: 768px) {
    .about-carousel {
        height: 300px;
    }
}

.about-text h2 {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.about-text strong {
    color: var(--dark-gray);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--light-gray);
    position: relative;
}

.parallax-features {
    background-image: url('img/flas.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 32, 17, 0.85);
    /* Strong gradient/dark overlay */
    z-index: 1;
}

.relative-content {
    position: relative;
    z-index: 2;
}

h2.text-white {
    color: white;
}

h2.text-white::after {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.feature-item {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--primary-green);
    font-size: 18px;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Homologaciones Section */
.homologaciones {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

.partner-logo {
    padding: 30px;
    font-size: 48px;
    color: #999;
}

.partner-logo i {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.partner-logo p {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 16px;
}

.homologaciones-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.homologaciones-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.tab-link {
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    padding: 10px 20px;
    position: relative;
}

.tab-link.active {
    color: var(--primary-green);
}

.tab-link.active-tab {
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #15a346 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Quote Form Section */
.quote-form {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
    padding-right: 20px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-benefits {
    display: flex;
    gap: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
}

.benefit i {
    color: var(--primary-green);
    font-size: 18px;
}

.form-content {
    display: flex;
    flex-direction: column;
}

.steps {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 13px;
}

.step.active {
    background-color: var(--primary-green);
    color: white;
}

.step small {
    display: block;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.form-body h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-row label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark-gray);
    background-color: #fbfbfb;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(29, 167, 84, 0.12);
}

.services-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox span {
    color: var(--text-gray);
    font-size: 14px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #18231c 0%, #111a14 100%);
    color: #ccc;
    padding: 40px 0 10px;
    position: relative;
    border-top: 3px solid var(--primary-green);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: radial-gradient(circle, rgba(29, 167, 84, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-section .footer-logo {
    color: var(--primary-green);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.footer-logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.footer-links a i {
    font-size: 10px;
    margin-right: 8px;
    color: var(--primary-green);
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-section.contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.footer-section.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 167, 84, 0.12);
    border-color: rgba(29, 167, 84, 0.3);
}

.footer-section.contact-card p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.footer-section.contact-card .contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-services p {
    font-size: 12px;
    color: #999;
    margin: 8px 0;
}

.office {
    margin-bottom: 15px;
    font-size: 12px;
}

.office h4 {
    color: var(--primary-green);
    margin: 10px 0 5px;
    font-size: 12px;
}

.office p {
    color: #999;
    line-height: 1.4;
    margin: 3px 0;
}

.contact-info {
    margin-bottom: 15px;
    font-size: 12px;
}

.contact-info p {
    color: #999;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-green);
    width: 14px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 30px 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.footer-copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .navbar {
        gap: 10px;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .hero-content {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .form-header {
        padding-right: 0;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-green);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }

    .navbar.active {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .hero {
        padding: 40px 0;
        min-height: 60vh;
    }

    .hero-text h1 {
        font-size: clamp(36px, 8vw, 48px);
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .services,
    .about,
    .features,
    .company-philosophy,
    .quote-form,
    .parallax-features,
    .homologaciones {
        padding: 40px 0 !important;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .visit-section .about-content {
        flex-direction: column;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .services-checkboxes {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .homologaciones-tabs {
        flex-direction: column;
        gap: 15px;
    }

    .form-container {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .whatsapp-side-btn {
        top: auto;
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
        font-size: 24px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .whatsapp-side-btn span,
    .whatsapp-side-btn text {
        display: none;
    }
}

@media (max-width: 480px) {

    .container,
    .container-fluid {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo p {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .homologaciones-buttons {
        flex-direction: column;
    }

    .homologaciones-buttons .btn {
        width: 100%;
    }

    .filosofia-mision,
    .filosofia-vision,
    .filosofia-diferencia,
    .filosofia-valores {
        padding: 25px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.6s ease-out;
}

.feature-item {
    animation: fadeIn 0.6s ease-out;
}

/* Filosofía de la Empresa (Misión, Visión, Diferencias, Valores) */
.company-philosophy {
    padding: 80px 0;
    background: linear-gradient(135deg, #f4fbf7 0%, #e6f2eb 100%);
    position: relative;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.company-philosophy .container {
    position: relative;
    z-index: 2;
}

/* Animated Molecules Background */
.molecule-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.molecule {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 167, 84, 0.7) 0%, rgba(29, 167, 84, 0.2) 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(29, 167, 84, 0.4);
    animation: molecule-float infinite linear;
    bottom: -100px;
}

@keyframes molecule-float {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50vh) translateX(30px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(-30px) scale(1.5);
        opacity: 0;
    }
}

.filosofia-grid {
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.filosofia-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.filosofia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.filosofia-mision {
    background: linear-gradient(135deg, #156658 0%, #0c4239 100%);
    /* Tono más mate y opaco */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.filosofia-mision h3 {
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.filosofia-mision p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

.filosofia-vision {
    background: linear-gradient(135deg, #156658 0%, #0c4239 100%);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
    border-right: 1px dashed rgba(255, 255, 255, 0.4);
}

.filosofia-vision h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.filosofia-vision p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

.filosofia-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: linear-gradient(135deg, #156658 0%, #0c4239 100%);
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    border-left: 1px dashed rgba(255, 255, 255, 0.4);
    border-right: 1px dashed rgba(255, 255, 255, 0.4);
}

.filosofia-diferencia {
    padding: 40px;
}

.filosofia-diferencia h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.diferencia-item {
    margin-bottom: 20px;
}

.diferencia-item h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.diferencia-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.filosofia-valores {
    padding: 40px;
    border-left: 1px dashed rgba(255, 255, 255, 0.4);
}

.filosofia-valores h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.valores-list {
    list-style: none;
    padding: 0;
}

.valores-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.valores-list li i {
    color: #fff;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .filosofia-top {
        grid-template-columns: 1fr;
    }

    .filosofia-bottom {
        grid-template-columns: 1fr;
    }

    .filosofia-vision {
        border-left: 1px dashed rgba(255, 255, 255, 0.4);
    }

    .filosofia-valores {
        border-left: none;
        border-top: 1px dashed rgba(255, 255, 255, 0.4);
    }
}

/* Compensación nativa para la cabecera fija */
html {
    scroll-padding-top: 130px;
    scroll-behavior: smooth;
}

section[id], div[id] {
    scroll-margin-top: 130px;
}

/* =========================================================================
   ASESORÍA GRATUITA PAGE
   ========================================================================= */

.asesoria-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.asesoria-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 30, 52, 0.85);
    z-index: 1;
}

.asesoria-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.asesoria-hero-content h1 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}

.asesoria-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-yellow-solid {
    background-color: #cfdb00;
    color: #0b2210;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none;
    border: none;
    display: inline-block;
}

.btn-yellow-solid:hover {
    background-color: #b8c400;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 219, 0, 0.3);
}

.mt-4 {
    margin-top: 25px;
}

/* Details Section */
.asesoria-details {
    padding: 90px 0;
    background-color: #fdfcf9;
}

.asesoria-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.asesoria-img-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.asesoria-text-col {
    color: #333;
}

.asesoria-tag {
    color: #a4be1d;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.asesoria-text-col h2 {
    color: #0c1833;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.25;
}

.asesoria-text-col p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.asesoria-checklist-title {
    margin-bottom: 15px !important;
    font-size: 16px !important;
    color: #333 !important;
}

.asesoria-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.asesoria-checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #0c1833;
    line-height: 1.5;
}

.asesoria-checklist i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #cfdb00;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .asesoria-hero-content h1 {
        font-size: 32px;
    }
    
    .asesoria-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .asesoria-hero-content h1 {
        font-size: 26px;
    }
}