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

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f7f3ec;
    color: #16352f;
    line-height: 1.6;
}

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

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

a:hover {
    text-decoration: none;
}

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

/* Language visibility */
body.lang-es [data-lang="en"] {
    display: none;
}

body.lang-en [data-lang="es"] {
    display: none;
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 236, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 77, 64, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.55rem;
}

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

.logo-mini {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #0c4d40;
}

.brand {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0c4d40;
}

.brand-sub {
    margin: 0;
    font-size: 0.75rem;
    color: #466760;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    position: relative;
    padding-block: 0.25rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.15rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0c4d40, #22aa8a);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.lang-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 500;
    color: #33544d;
}

.lang-btn.active {
    background: #0c4d40;
    color: #fefdfb;
}

.lang-switch .divider {
    color: #9bb8b0;
}

/* Top call bar */

.call-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #0c4d40;
    color: #ffffff;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.call-top .phone-icon {
    font-size: 1rem;
}

/* Hero */

.hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: stretch;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(12, 77, 64, 0.72), rgba(12, 77, 64, 0.88));
}

.hero-content {
    position: relative;
    padding-block: clamp(5rem, 12vh, 7rem);
    color: #fefdfb;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.4rem;
    color: #e1f3eb;
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    max-width: 28rem;
    margin: 0.2rem 0 0.8rem;
}

.hero-text {
    max-width: 32rem;
    font-size: 0.95rem;
    color: #f5faf7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.8rem;
    font-size: 0.8rem;
}

.hero-badges span {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(248, 243, 236, 0.12);
    border: 1px solid rgba(248, 243, 236, 0.18);
}

/* Sections */

.section {
    padding-block: clamp(3rem, 7vh, 4rem);
}

.section.soft {
    background: #f0ebe2;
}

.section-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #143530;
}

.section-title.center {
    text-align: center;
}

.section-text {
    font-size: 0.98rem;
    color: #465753;
    margin-top: 0;
    margin-bottom: 1rem;
}

.section-text.center {
    text-align: center;
    max-width: 38rem;
    margin-inline: auto;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out, color 0.18s ease-out;
}

.btn.primary {
    background: linear-gradient(135deg, #0c4d40, #1b8668);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(10, 64, 52, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(10, 64, 52, 0.48);
}

.btn.ghost {
    background: transparent;
    color: #fefdfb;
    border-color: rgba(247, 243, 236, 0.6);
}

.btn.ghost:hover {
    background: rgba(247, 243, 236, 0.12);
}

.btn.small {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

.btn.full {
    width: 100%;
}

/* Grids & cards */

.grid {
    display: grid;
    gap: 2rem;
}

.about-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    align-items: start;
}

.about-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 14px 45px rgba(12, 77, 64, 0.08);
    font-size: 0.9rem;
}

.about-card h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.about-card ul {
    padding-left: 1.2rem;
    margin: 0 0 0.8rem;
}

.about-location {
    font-weight: 600;
    color: #0c4d40;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 0.8rem;
    color: #1b8668;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem 1.2rem 1.4rem;
    box-shadow: 0 12px 36px rgba(12, 77, 64, 0.07);
    font-size: 0.9rem;
}

.card h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

/* Video & social */

.video-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    align-items: flex-start;
}

.video-wrapper {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(8, 54, 43, 0.35);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.social-block {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 16px 40px rgba(9, 58, 47, 0.08);
    font-size: 0.9rem;
}

.social-embeds {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.8rem;
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.gallery-item {
    border-radius: 0.9rem;
    cursor: pointer;
    object-fit: cover;
    height: 150px;
    width: 100%;
    box-shadow: 0 10px 26px rgba(12, 77, 64, 0.12);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, filter 0.2s ease-out;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(12, 77, 64, 0.22);
    filter: brightness(1.03);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 15, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;
    padding: 1rem;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    border-radius: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -0.6rem;
    right: -0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #f7f3ec;
    cursor: pointer;
    font-size: 1.3rem;
}

/* Contact */

.contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.4rem;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 1.3rem;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 18px 55px rgba(13, 72, 59, 0.12);
    font-size: 0.9rem;
}

.contact-form-card h4 {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    color: #34514b;
}

input,
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #c9d5d0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #fcfaf7;
}

input:focus,
textarea:focus {
    border-color: #1b8668;
    box-shadow: 0 0 0 1px rgba(27, 134, 104, 0.15);
}

textarea {
    resize: vertical;
}

.form-small {
    font-size: 0.72rem;
    margin-top: 0.5rem;
    color: #6a7a75;
}

/* WhatsApp floating */

.whatsapp-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 61;
}

.wa-icon {
    font-size: 1.6rem;
}

/* Footer */

.main-footer {
    background: #112722;
    color: #f6f0e7;
    font-size: 0.82rem;
    padding-block: 1.2rem;
    margin-top: 1.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.main-footer a {
    color: #e0f7ee;
}

/* Fade-in */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .main-nav {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.85rem;
    }
    .about-grid,
    .video-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
    }
    .header-inner {
        padding-block: 0.4rem;
    }
    .main-nav {
        font-size: 0.8rem;
    }
    .hero-content {
        padding-block: 4.4rem 4rem;
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .call-top {
        right: 0.8rem;
        bottom: 4.5rem;
    }
    .whatsapp-float {
        left: 0.8rem;
        bottom: 0.8rem;
    }
}
