/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2c5e3f; /* Deep Green */
    --secondary-color: #f4b41a; /* Gold/Yellow */
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray-bg: #f7f7f7;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

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

/* --- Header & Navigation --- */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* NUEVO CÓDIGO CSS (DESPUÉS) */
.logo {
    /* This ensures the logo container is flexible and aligned */
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* <-- ¡PUEDES AJUSTAR ESTE VALOR! */
    width: auto;
    display: block; /* Elimina espacios extra debajo de la imagen */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--secondary-color);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 720px;
    background: url('images/hero-image.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 5% 0 5%; /* Add top padding to avoid header overlap */
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffc43a;
    transform: translateY(-3px);
}


/* --- General Content Sections --- */
.content-section {
    padding: 80px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Intro Section --- */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: center;
    margin-top: 2rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.oil-drop-image {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(244, 180, 26, 0.4));
    transition: all 0.3s ease;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.oil-drop-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 35px rgba(244, 180, 26, 0.6));
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 8px 25px rgba(244, 180, 26, 0.4));
    }
    100% {
        filter: drop-shadow(0 12px 30px rgba(244, 180, 26, 0.7)) drop-shadow(0 0 20px rgba(244, 180, 26, 0.3));
    }
}

.alt-bg {
    background-color: var(--light-gray-bg);
}

hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    width: 80%;
    margin: 0 auto;
}


/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Advantage Section --- */
.advantage-item {
    margin-bottom: 2rem;
}
.advantage-item h3 {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray-bg);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--text-color);
}

/* --- Coverage Section --- */
#coverage {
    background-color: var(--background-color);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 2rem;
}

.coverage-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.coverage-areas {
    display: flex;
    gap: 30px;
    margin-bottom: 2rem;
}

.area-column {
    flex: 1;
}

.area-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.area-column ul {
    list-style: none;
    padding: 0;
}

.area-column li {
    padding: 0.3rem 0;
    margin-left: 1rem;
    position: relative;
}

.area-column li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.coverage-note {
    background-color: var(--light-gray-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

.map-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid var(--light-gray-bg);
}

#service-area-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
    font-size: 1.2rem;
}
.contact-info p {
    margin: 0.5rem 0;
}

/* --- Footer --- */
.main-footer-bottom {
    padding: 15px 5%;
    background-color: var(--primary-color);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.developer-credit {
    font-size: 0.85rem;
    opacity: 0.9;
}

.developer-credit a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.developer-credit a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    /* Header adjustments for mobile */
    .main-header {
        padding: 0.8rem 5%;
    }
    
    .navbar {
        position: relative;
    }
    
    .logo img {
        height: 60px; /* Smaller logo on mobile */
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    /* Show nav links when active */
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: var(--primary-color);
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background-color: var(--light-gray-bg);
        color: var(--secondary-color);
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 140px 5% 20px 5%;
        min-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Coverage section mobile styles */
    .coverage-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .coverage-areas {
        flex-direction: column;
        gap: 20px;
    }
    
    .coverage-text h3 {
        font-size: 1.5rem;
    }
    
    .area-column h4 {
        font-size: 1.2rem;
    }
    
    #service-area-map {
        height: 300px;
    }
    
    /* Intro section mobile styles */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .oil-drop-image {
        width: 180px;
        max-width: 80%;
    }
    
    /* Footer mobile styles */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* --- Floating Chat Button --- */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.chat-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Usa el color principal del sitio */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(44, 94, 63, 0.6)); /* Glow con el color principal */
}

.chat-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 12px rgba(44, 94, 63, 0.9)); /* Glow más intenso */
}

.chat-icon {
    width: 32px;
    height: 32px;
    fill: white; /* Color del icono */
}

/* Media query para pantallas más pequeñas */
@media (max-width: 600px) {
    .chat-button {
        bottom: 20px;
        right: 20px;
    }
    .chat-button a {
        width: 55px;
        height: 55px;
    }
    .chat-icon {
        width: 28px;
        height: 28px;
    }
}