:root {
    --primary: #3f4f66;
    --accent: #ab7a52;
    --white: #ffffff;
    --dark: #101113;
    --muted: #5f646f;
    --surface: #f4f5f7;
    --line: #d8dde6;
    --radius: 18px;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.ads-topbar {
    background: #243246;
    color: #f2f6ff;
    font-size: 0.94rem;
}

.ads-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.ads-topbar-inner p {
    margin: 0;
}

.ads-topbar-cta {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.ads-topbar-cta:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 17, 19, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.02em;
}

.brand-main {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 800;
}

.brand-accent {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 400;
    color: #d9dfe9;
}

.menu {
    display: flex;
    gap: 1.2rem;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
}

.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: 0;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 18s infinite;
    transform: scale(1.03);
}

.hero-slide-1 {
    background-image: url("assets/fotos/hero-1.jpg");
    animation-delay: 0s;
}

.hero-slide-2 {
    background-image: url("assets/fotos/hero-2.jpg");
    animation-delay: 6s;
}

.hero-slide-3 {
    background-image: url("assets/fotos/hero-3.jpg");
    animation-delay: 12s;
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(120deg, rgba(16, 17, 19, 0.86) 0%, rgba(16, 17, 19, 0.58) 48%, rgba(63, 79, 102, 0.55) 100%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    padding: 5rem 0;
}

.tagline {
    font-weight: 700;
    color: #dde8ff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2 {
    font-family: "Manrope", sans-serif;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4.8vw, 3.45rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.55rem, 3.5vw, 2.35rem);
    margin-bottom: 0.7rem;
}

.hero-copy p {
    max-width: 62ch;
}

.hero-value {
    display: inline-flex;
    margin: 0 0 0.9rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #4f6482);
    color: var(--white);
}

.btn-light {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-card {
    background: rgba(255, 255, 255, 0.93);
    color: var(--dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.35rem;
}

.hero-card h2 {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.hero-card li {
    margin-bottom: 0.45rem;
}

.hero-card i {
    color: var(--primary);
    margin-right: 0.45rem;
}

.hero-mini-cta {
    display: inline-flex;
    margin-top: 0.6rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
}

.hero-mini-cta:hover {
    text-decoration: underline;
}

.section-heading {
    margin-bottom: 1.15rem;
}

.eyebrow {
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
}

.services,
.curtain-types,
.about,
.showcase,
.seo-content,
.faq,
.contact {
    padding: 4.6rem 0;
}

.services {
    background: var(--surface);
}

.curtain-types {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 45%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.curtain-types-inner {
    max-width: 1040px;
}

.curtain-types-header {
    text-align: center;
    margin-bottom: 2rem;
}

.curtain-types-header .eyebrow {
    margin-bottom: 0.5rem;
}

.curtain-types-header h2 {
    margin-bottom: 0.65rem;
}

.curtain-types-subtitle {
    margin: 0 auto 0.75rem;
    max-width: 44rem;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.45;
}

.curtain-types-intro {
    margin: 0 auto;
    max-width: 40rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.curtain-types-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.curtain-type-card {
    position: relative;
    border-radius: 16px;
    padding: 1.35rem 1.25rem 1.4rem;
    background: var(--white);
    border: 1px solid #e3e9f2;
    box-shadow: 0 10px 28px rgba(36, 50, 70, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.curtain-type-card:hover {
    border-color: rgba(63, 79, 102, 0.35);
    box-shadow: 0 16px 36px rgba(36, 50, 70, 0.1);
    transform: translateY(-2px);
}

.curtain-type-card h3 {
    margin: 0 0 0.35rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.12rem;
    color: var(--dark);
}

.curtain-type-lead {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.curtain-type-def {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.curtain-types-cta {
    margin: 2rem 0 0;
    text-align: center;
}

.curtain-types-cta .btn {
    border: none;
    cursor: pointer;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3,
.card p {
    margin: 0;
    padding: 0 1rem;
}

.card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: "Manrope", sans-serif;
}

.card h3 i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.card p {
    color: var(--muted);
    padding-bottom: 1.1rem;
}

.card-cta {
    display: inline-flex;
    margin: 0 1rem 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.card-cta:hover {
    text-decoration: underline;
}

.ads-proof {
    background: #1f2c3d;
    color: #f1f5ff;
    padding: 1rem 0;
}

.ads-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.ads-proof article {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ads-proof strong {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.ads-proof span {
    font-size: 0.9rem;
    color: #d4deef;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.8rem;
    align-items: center;
}

.about-visual img {
    border-radius: var(--radius);
    min-height: 360px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-copy p {
    color: #2d3138;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.mosaic img {
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.gallery {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

/* Galería estilo pizarra */
.gallery--chalk {
    background: transparent;
    padding: 0;
}

.gallery-chalk-wood {
    padding: 4.6rem 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 40%),
        linear-gradient(90deg, rgba(62, 44, 28, 0.08) 0%, rgba(62, 44, 28, 0.02) 50%, rgba(62, 44, 28, 0.08) 100%),
        #3d2817;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gallery-chalk-inner {
    max-width: min(1140px, 92%);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 1.75rem) 2.25rem;
    border-radius: 6px;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
        linear-gradient(168deg, #2a3a32 0%, #1a2420 55%, #141c19 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-chalk-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-chalk-heading .eyebrow {
    color: #c9b896;
}

.gallery-chalk-heading h2 {
    color: #f2f1ec;
}

.gallery-chalk-note {
    margin: 0 auto;
    max-width: 52rem;
    color: #b8c9b8;
    font-size: 0.98rem;
    line-height: 1.65;
}

.gallery-grid--chalk {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.gallery-item--chalk {
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.25);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.35);
}

.gallery-item-frame {
    display: block;
    padding: 6px;
    background: linear-gradient(145deg, #1a221e 0%, #0f1614 100%);
}

.gallery-item--chalk img {
    width: 100%;
    height: auto;
    max-height: min(72vh, 520px);
    object-fit: contain;
    object-position: center;
    display: block;
    vertical-align: top;
    transition: opacity 0.25s ease;
}

.gallery-item--chalk:hover img {
    opacity: 0.95;
}

.gallery-empty--chalk {
    border: 1px dashed rgba(200, 210, 200, 0.35);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: #c5d4c8;
    background: rgba(0, 0, 0, 0.2);
}

.seo-content {
    background: #ffffff;
}

.seo-content p {
    margin-top: 0;
    max-width: 90ch;
    color: #2e3645;
}

.faq {
    background: #f9fbff;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e1e7f1;
    border-radius: 14px;
    padding: 1rem;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 1.06rem;
    font-family: "Manrope", sans-serif;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

.guarantees {
    padding: 4.6rem 0;
    background: #f1f4f9;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.guarantee-item {
    background: var(--white);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.guarantee-item i {
    color: var(--primary);
    font-size: 1.28rem;
}

.guarantee-item h3 {
    margin: 0.6rem 0 0.4rem;
    font-size: 1.07rem;
    font-family: "Manrope", sans-serif;
}

.guarantee-item p {
    margin: 0;
    color: var(--muted);
}

.guarantees-cta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.guarantees-cta p {
    margin: 0;
    color: #364050;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-empty {
    border: 1px dashed #bac1cd;
    border-radius: var(--radius);
    padding: 1.4rem;
    color: var(--muted);
    background: #fff;
}

.contact {
    background: #101113;
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: center;
}

.contact-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.contact-phone {
    color: #ffffff;
    font-weight: 700;
}

.site-footer {
    background: #090a0c;
    color: #bcc0c9;
    text-align: left;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.webcreativa-signature {
    margin: 0.45rem 0 0;
    font-size: 10px;
}

.webcreativa-signature a {
    color: #97a0b0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.webcreativa-signature a:hover {
    text-decoration: underline;
}

.form-section {
    padding: 4.6rem 0;
    background: #fff;
}

.lead-form {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.lead-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #293040;
    margin-bottom: 0.8rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    border: 1px solid #cfd6e2;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    background: #fff;
}

.lead-form textarea {
    resize: vertical;
}

.feedback {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.feedback.success {
    background: #eaf7ee;
    border: 1px solid #7ec892;
    color: #255f33;
}

.feedback.error {
    background: #feefef;
    border: 1px solid #e5a0a0;
    color: #8a3030;
}

.recaptcha-wrap {
    margin-bottom: 1rem;
}

.recaptcha-placeholder {
    margin-top: 0;
    margin-bottom: 1rem;
    border: 1px dashed #b7bfd0;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    color: #4c5670;
    background: #f5f7fc;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    font-weight: 700;
}

.whatsapp-float i {
    font-size: 1.15rem;
}

@keyframes heroFade {
    0% {
        opacity: 0;
    }
    6% {
        opacity: 1;
    }
    28% {
        opacity: 1;
    }
    36% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guarantee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .curtain-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ads-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .menu {
        display: none;
    }

    .ads-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .services,
    .curtain-types,
    .about,
    .showcase,
    .seo-content,
    .guarantees,
    .faq,
    .contact,
    .form-section {
        padding: 3.5rem 0;
    }

    .gallery-chalk-wood {
        padding: 3.5rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .mosaic {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .guarantee-grid,
    .ads-proof-grid,
    .curtain-types-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 4rem 0;
    }

    .whatsapp-float {
        right: 0.7rem;
        bottom: 0.7rem;
        padding: 0.7rem 0.9rem;
    }
}
