/*
Theme Name: Plaggo Landing Page
Theme URI: https://www.facebook.com/Fstudiodave
Author: Fstudio
Author URI: https://www.facebook.com/Fstudiodave
Description: Landing page profesional para servicios de control de plagas. Diseño responsivo para móvil, tablet y escritorio.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plaggo
Tags: one-page, responsive, custom-logo, custom-menu, threaded-comments
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary-dark: #1a3028;
    --primary-bright: #6b8e23;
    --primary-light: #f4faf6;
    --accent-yellow: #f4b400;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 110;
}

.logo-container img {
    height: 45px;
    width: auto;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    z-index: 200;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-nav-overlay.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav-overlay a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

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

.mobile-nav-overlay .mobile-cta-btn {
    background-color: var(--primary-bright);
    color: white !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem !important;
    margin-top: 8px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    /* Desktop: account for top-bar (~38px) + nav (~75px) = ~113px, add some breathing room */
    padding-top: 400px; /* Increased to push content harder against the flex-end */
    padding-bottom: 20px; /* Absolute minimal padding from the bottom curve */
    min-height: 90vh; /* Consistent background presence */
    display: flex;
    align-items: flex-end; /* Keep content at the bottom */
    background-color: var(--primary-dark); /* Fallback color */
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 48, 40, 0.85) 0%, rgba(26, 48, 40, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 1100px; /* Extra wide to ensure 2 lines on desktop */
}

.scroll-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 20;
}

.curve-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-olive {
    background-color: var(--primary-bright);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-olive:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 142, 35, 0.3);
}

.btn-primary {
    background-color: var(--primary-bright);
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* ============================================================
   SERVICES (Swiper carousel stays, responsive via breakpoints)
   ============================================================ */
.service-card-premium {
    background: #fdfdf5;
    border-radius: 100px 100px 20px 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(107, 142, 35, 0.05);
    border-bottom: 5px solid var(--primary-bright);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-image-container {
    width: 220px;
    height: 220px;
    background: #eeeee0;
    border-radius: 50%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 8px solid #fdfdf5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.service-card-premium h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-card-premium p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-card-premium .learn-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-premium {
    background: #2d5a3d;
    position: relative;
    color: white;
    padding-top: 80px;
    padding-bottom: 60px;
    margin-top: 0;
    border-top: 4px solid var(--primary-bright);
}

.footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.footer-contact-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-bright);
    color: white;
    transform: translateY(-2px);
}

.contact-pill i {
    color: var(--primary-bright);
    width: 18px;
    height: 18px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--primary-bright);
    border-color: var(--primary-bright);
    transform: scale(1.1);
}

.footer-social-icon i {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* --- Header --- */
    .hamburger-btn {
        display: flex;
    }

    /* Hide desktop nav utilities via inline class helpers */
    /* (Applied via class in HTML: hidden on mobile) */

    /* Top bar */
    .top-bar {
        font-size: 0.65rem;
    }

    .top-bar-address-text {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }

    /* Logo */
    .logo-container img {
        height: 38px;
    }

    /* --- Hero --- */
    .hero-section {
        /* top-bar (38px) + nav (68px) = 106px — add 14px extra = 120px */
        padding-top: 180px; /* Match desktop/tablet safe height */
        padding-bottom: 70px;
        min-height: 100svh;
        min-height: 100vh;
        /* Darken overlay on mobile for readability */
        background-position: center center;
        background-color: var(--primary-dark);
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(26, 48, 40, 0.82) 0%,
                rgba(26, 48, 40, 0.60) 100%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.4rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-content .flex {
        justify-content: center;
    }

    .hero-content .btn-olive {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .scroll-indicator {
        width: 48px;
        height: 48px;
        bottom: 20px;
    }

    /* --- Services --- */
    .service-image-container {
        width: 160px;
        height: 160px;
    }

    /* --- Why Choose Us --- */
    /* Force section to single column */
    .why-us-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Feature cards: keep 2-col grid but reduce padding */
    .why-us-feature-cards {
        gap: 1rem !important;
    }

    .why-us-feature-cards>div {
        padding: 1.25rem !important;
    }

    /* Remove the staggered offset on mobile */
    .why-us-col-right {
        margin-top: 0 !important;
    }

    /* --- Guarantee --- */
    .guarantee-box {
        border-radius: 2rem !important;
        padding: 2rem 1.5rem !important;
        flex-direction: column !important;
        text-align: center;
    }

    .guarantee-box h2 {
        font-size: 1.6rem !important;
    }

    /* --- Contact / Lead Form --- */
    .contacto-section-title {
        font-size: 2.2rem !important;
    }

    .contacto-section-subtitle {
        font-size: 1rem !important;
    }

    .lead-form-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 1.5rem !important;
    }

    /* Form 2-col grid → 1-col on mobile */
    .form-name-email-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Testimonials --- */
    .testimonials-wrapper {
        padding: 0 1rem;
    }

    .testimonials-wrapper>div.w-full {
        max-width: 100% !important;
    }

    /* Section heading text scaling */
    .text-4xl {
        font-size: 1.875rem !important;
        /* 30px */
    }

    .text-5xl {
        font-size: 2.25rem !important;
        /* 36px */
    }

    /* --- Footer --- */
    .footer-premium {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .footer-nav {
        gap: 20px;
    }

    .footer-contact-pills {
        flex-direction: column;
        align-items: center;
    }

    .contact-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .footer-bottom .flex {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 420px)
   ============================================================ */
@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .service-image-container {
        width: 140px;
        height: 140px;
    }

    /* Feature cards: single column on tiny screens */
    .why-us-feature-cards {
        grid-template-columns: 1fr !important;
    }

    .contacto-section-title {
        font-size: 1.8rem !important;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (768px – 1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Hero */
    .hero-section {
        padding-top: 140px;
        padding-bottom: 90px;
        min-height: 85vh;
    }

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

    .hero-content h1 {
        font-size: 3.4rem !important;
        line-height: 1.1 !important;
    }

    /* Why Choose Us: single column on tablet to avoid squishing */
    .why-us-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .why-us-col-right {
        margin-top: 0 !important;
    }

    /* Contact form */
    .contacto-section-title {
        font-size: 3rem !important;
    }

    /* Guarantee */
    .guarantee-box {
        padding: 2.5rem 3rem !important;
    }
}

/* ============================================================
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .hero-section {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    /* Why choose us: restore 2-col */
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .why-us-col-right {
        margin-top: 0;
    }

    /* Contact form: restore 2-col name/email */
    .form-name-email-grid {
        grid-template-columns: 1fr 1fr;
    }
}