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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background-color: #ffffff;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 100% - 2rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.logo-text p {
    font-size: 0.8rem;
    color: #666;
}

.main-nav {
    margin-left: auto;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-list a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-list a:hover {
    background: #ffeded;
    color: #b30000;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #222;
    border-radius: 999px;
}

.btn-header {
    margin-left: 1rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #ff2b2b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255, 43, 43, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 43, 43, 0.45);
    background: #e10000;
}

/* HERO */
.hero {
    padding: 3.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
    color: #b30000;
}

.hero-subtitle {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-text p {
    margin-bottom: 0.35rem;
    color: #444;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 1rem;
}

.tag {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #ffe6e6;
    color: #b30000;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: #ff2b2b;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255, 43, 43, 0.45);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary.big {
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(255, 43, 43, 0.55);
    background: #e10000;
}

.hero-note {
    font-size: 0.85rem;
    color: #666;
}

.hero-media {
    position: relative;
}

.hero-main-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hero-thumbs img {
    width: 80px;
    height: 64px;
    border-radius: 0.9rem;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.hero-thumbs img.active,
.hero-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: #fafafa;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #b30000;
}

.section-header p {
    color: #555;
    max-width: 640px;
    margin: 0.2rem auto;
}

/* Cards & layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    border: 1px solid #f0f0f0;
}

.card h3,
.card h2 {
    margin-bottom: 0.5rem;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

.placeholder {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.75rem;
    font-style: italic;
}



.trabajos-section {
    margin-top: 2rem;
}

.gallery-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #b30000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Responsive gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Flyer block */
.flyer-wrapper {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.flyer-img {
    border-radius: 1.2rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.flyer-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.flyer-text ul {
    list-style: disc;
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
    color: #444;
    font-size: 0.95rem;
}

.flyer-text p {
    font-weight: 700;
    color: #b30000;
}

/* Sectors */
.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.chip {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #ffe0e0;
    background: #fff;
    font-size: 0.85rem;
    color: #b30000;
    font-weight: 600;
}

.center {
    text-align: center;
}

/* Experience & license */
.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
}

.bullet-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    color: #555;
    font-size: 0.9rem;
}

/* Plagas */
.pest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.pest-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #f0f0f0;
}

.pest-icon {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 0.4rem;
}

/* Contact */
.contact-section {
    border-top: 1px solid #f1f1f1;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 2rem;
    align-items: center;
}

.contact-data {
    margin: 1rem 0;
}

.phone-label {
    font-size: 0.9rem;
    color: #777;
}

.phone-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #b30000;
}

.contact-logo {
    max-width: 260px;
    margin-inline: auto;
}

/* Footer */
.site-footer {
    padding: 1.8rem 0 2.4rem;
    border-top: 1px solid #eee;
    background: #ffffff;
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-inner p + p {
    margin-top: 0.25rem;
}

/* Floating call button */
.floating-call {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    background: #ff2b2b;
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 14px 32px rgba(255, 43, 43, 0.6);
}

.phone-icon {
    font-size: 1.1rem;
}

/* Animations on scroll */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .services-grid,
    .flyer-wrapper,
    .experience-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .btn-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 0.75rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        right: 0;
        top: 140%;
        flex-direction: column;
        background: #ffffff;
        padding: 0.75rem;
        border-radius: 0.75rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        min-width: 180px;
        transform-origin: top right;
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s, transform 0.15s;
    }

    .nav-list.open {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .hero {
        padding-top: 2.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-call {
        bottom: 0.85rem;
        right: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.6rem;
    }

    .phone-number {
        font-size: 1.4rem;
    }

    .pest-grid {
        grid-template-columns: 1fr 1fr;
    }
}
