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

body {
    font-family: 'Poppins', sans-serif;
    color: #10231d;
    background-color: #f5f7f4;
    line-height: 1.6;
}

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

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

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(1, 51, 38, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

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

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #c8a44c;
    background: #0b3023;
}

.logo-text {
    color: #f9fbf7;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.logo-subtitle {
    font-weight: 300;
    font-size: 0.72rem;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    color: #f9fbf7;
    opacity: 0.9;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.15s ease, opacity 0.2s ease;
}

.main-nav a:hover {
    background: rgba(200, 164, 76, 0.18);
    transform: translateY(-1px);
    opacity: 1;
}

/* Nav toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Hero */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: #fdfefc;
    background: radial-gradient(circle at top left, #76c96b 0, #024731 45%, #01261a 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/paisaje-xochitepec.jpg') center/cover no-repeat;
    opacity: 0.22;
    mix-blend-mode: soft-light;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.5), rgba(1,32,22,0.2));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 0 3rem;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text h1 span {
    color: #ffef9f;
}

.hero-text p {
    font-weight: 300;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.6rem;
}

.badge {
    background: linear-gradient(135deg, #f9e1a7, #c8a44c);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    color: #2b220e;
    min-width: 190px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.badge-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.badge-price {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
}

.badge-note {
    font-size: 0.7rem;
    opacity: 0.9;
}

.hero-list {
    list-style: none;
    font-size: 0.9rem;
}

.hero-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #b3f4a1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 0.6rem;
}

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

.btn-primary {
    background: #b3f45d;
    color: #10231d;
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.4);
    background: #c4ff6e;
}

.btn-outline {
    background: transparent;
    border-color: #fdfefc;
    color: #fdfefc;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
}

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

.hero-legend {
    font-size: 0.8rem;
    opacity: 0.85;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

/* Sections */

.section {
    padding: 3.2rem 0;
}

.section-alt {
    background: #ecf2ea;
}

.section h2 {
    font-size: 1.9rem;
    margin-bottom: 0.7rem;
    color: #023428;
}

.section-intro {
    max-width: 40rem;
    margin-bottom: 2rem;
    color: #4f5f56;
}

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

.section-text p {
    margin-bottom: 0.8rem;
}

.icon-list {
    list-style: none;
    margin: 0.5rem 0 0.6rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.icon-list span {
    color: #2f8f4e;
}

.note, .form-note {
    font-size: 0.8rem;
    color: #748277;
}

.image-stack {
    position: relative;
}

.image-stack img:first-child {
    border-radius: 1.2rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.image-stack img:last-child {
    border-radius: 1rem;
    width: 65%;
    position: absolute;
    right: -6%;
    bottom: -16%;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    border: 4px solid #f5f7f4;
}

/* Desarrollos */

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

.dev-image img {
    border-radius: 1.4rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.dev-info h3 {
    margin-bottom: 0.5rem;
}

.dev-list {
    list-style: none;
    margin-bottom: 0.9rem;
    color: #404e45;
}

.dev-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.dev-badge {
    background: #0b3023;
    color: #f7f9f6;
    padding: 0.55rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.8rem;
}

.dev-badge strong {
    display: block;
    font-size: 0.95rem;
}

.dev-note {
    font-size: 0.85rem;
    color: #6a766f;
    margin-bottom: 0.9rem;
}

/* Xochitepec cards */

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

.card {
    background: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

.card img {
    height: 170px;
    object-fit: cover;
}

.card-body {
    padding: 0.9rem 1rem 1rem;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

/* Galería */

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

.gallery-item {
    cursor: pointer;
    border-radius: 0.85rem;
    height: 150px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.26);
    opacity: 0.94;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Video */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0,0,0,0.24);
}

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

/* Redes */

.social-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.fb-page-wrapper iframe {
    width: 100%;
}

.social-info h3 {
    margin-bottom: 0.5rem;
}

/* Contacto */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    margin: 0.6rem 0 1rem;
}

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

.contact-list a {
    color: #2c6a46;
    font-weight: 500;
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0,0,0,0.2);
    margin-top: 0.8rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 230px;
    border: 0;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.contact-form-card h3 {
    margin-bottom: 0.9rem;
}

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

.form-group label {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
    color: #3f4f45;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #ccd4cd;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border 0.18s ease, box-shadow 0.18s ease;
    outline: none;
    background: #fdfefc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2f8f4e;
    box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.18);
}

/* Footer */

.main-footer {
    background: #01261a;
    color: #d9e4dd;
    padding: 1.5rem 0 1.7rem;
    margin-top: 1rem;
}

.footer-content {
    text-align: center;
    font-size: 0.82rem;
}

.footer-made a {
    color: #f1d67b;
}

/* WhatsApp float */

.whatsapp-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 25px rgba(0,0,0,0.35);
    z-index: 60;
    animation: pulse 2.3s infinite;
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Responsivo */

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-image {
        display: none;
    }

    .section-grid,
    .dev-grid,
    .cards-grid,
    .gallery-grid,
    .social-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-stack img:last-child {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        width: 80%;
    }

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

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

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(1,51,38,0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem 0.9rem;
        border-radius: 0 0 0 1.1rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;
        margin-bottom: 0.2rem;
        padding-inline: 0.4rem;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 2.6rem 0 2.6rem;
    }
}

@media (max-width: 520px) {
    .header-content {
        padding-block: 0.5rem;
    }

    .logo-title {
        font-size: 0.95rem;
    }

    .logo-subtitle {
        font-size: 0.68rem;
    }

    .section {
        padding: 2.4rem 0;
    }

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

    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 0.9rem;
        bottom: 0.9rem;
    }
}
