@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --ink: #16221f;
    --muted: #66716e;
    --cream: #f4f1e9;
    --paper: #fbfaf7;
    --accent: #b78b55;
    --line: #d9d6cd
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hace que el cuerpo ocupe toda la pantalla */
}

.header {
    height: 100px;
    padding: 1%;
    display: flex;
    align-items:center;
    justify-content: space-between;
    background: rgba(251, 250, 247, .94);
    position: sticky;
    top: 0%;
    z-index: 10;
    border-bottom: 1px solid var(--line)
}
.header img {
    width: 100px;
    height: 100px;
}

.brand {
    font-weight: 900;
    letter-spacing: .14em;
    text-decoration: none;
    color: var(--ink)
}

.brand span {
    font-weight: 400;
    color: var(--accent)
}

nav {
    display: flex;
    align-items: center;
    gap: 30px
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px
}

.nav-cta {
    border: 1px solid var(--ink);
    padding: 9px 16px;
    border-radius: 30px
}

.menu {
    display: none;
    background: none;
    border: 0;
    font-size: 25px
}

.hero {
    min-height: 650px;
    padding: 70px 7%;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 50px;
    background: linear-gradient(110deg, #f1eee5, #faf9f5 60%, #e7e3d8)
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 16px
}


.hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    max-width: 850px;
    margin: 0 0 25px;
    letter-spacing: -.04em
}

.hero h1 em {
    font-family: 'Playfair Display', serif;
    font-weight: 600
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 690px
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 32px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    padding: 13px 22px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit
}

.primary {
    background: var(--ink);
    color: #fff
}

.ghost {
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent
}

.hero-card {
    height: 610px;
    position: relative;
    background: linear-gradient(150deg, #b8b6aa, #191a19);
    display: flex;
    flex-direction: column;  
    justify-content: flex-end;
    padding: 35px;
    color: white;
    box-shadow: 25px 25px 0 rgba(183, 139, 85, .18)
}

.hero-card strong {
    font-size: 34px;
    line-height: 1.05
}

.glass-line {
    position: absolute;
    inset: 25px;
    border: 1px solid rgba(255, 255, 255, .45)
}

.section {
    padding: 100px 7%
}

.section-head {
    max-width: 700px;
    margin-bottom: 45px
}

.section h2,
.showcase h2,
.contact h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -.03em
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}



.card {
   background: var(--paper);
    padding: 34px;
    min-height: 120px;
}


.card.featured {
    background: var(--cream)
}
.persianas img {
    width: 300px;
    height: 300px
}

.number {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700
}

.card h3 {
    font-size: 23px;
    margin: 35px 0 10px
}

.card p,
.benefit-grid p,
.contact p {
    color: var(--muted)
}


.showcase {
   /*  padding: 100px; */
    display: grid;
    grid-template-columns: 2fr 1fr;
/*     gap: 180px; */
   /*  align-items: center; */
    background: var(--cream);
    padding: 100px;
}

.showcase ul {
    list-style: none;
    margin-top: 0px;
}

.showcase li {
    padding: 0px 0;
    border-bottom: 1px solid var(--line)
}

.showcase li:before {
    content: '—';
    color: var(--accent);
    margin-right: 12px
}

.visual {
    display: grid;
    /* height: 700px;
    width: 484px; */
    position: relative;
    background: #c7c4b9;
   /*  overflow: hidden */
}
.productos {
    display: grid;
    /* grid-template-columns: repeat(1fr, 1fr); */
   /*  gap: 10px; */
    background: var(--line);
    border: 1px solid var(--line)
}

.window {
    position: absolute;
    inset: 0 18% 0 18%;
    background: linear-gradient(100deg, #a6afa8, #e2dfd3 48%, #9fa8a0);
    border-left: 8px solid #ece8dd;
    border-right: 8px solid #ece8dd
}

.blind {
    position: absolute;
    z-index: 2;
    left: 18%;
    right: 18%;
    top: 0;
    height: 45%;
    background: repeating-linear-gradient(90deg, #f0ede5 0 14px, #d5d0c3 14px 18px);
    opacity: .92
}

.door {
    position: absolute;
    z-index: 3;
    right: 5%;
    bottom: 0;
    width: 32%;
    height: 78%;
    border: 8px solid #ece8dd;
    background: linear-gradient(120deg, rgba(255, 255, 255, .2), rgba(75, 88, 82, .45))
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.benefit-grid b {
    padding: 10%;
    display: block;
    font-size: 25px;
    color: var(--accent)
}

.benefit-grid h3 {
    font-size: 18px
}

.contact {
    padding: 110px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: var(--ink);
    color: white
}

.contact .eyebrow {
    color: #d4ae7c
}

.contact p {
    color: #c7cfcb
}

.contact form {
    display: grid;
    gap: 12px
}

.contact input,
.contact select,
.contact textarea {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #52605b;
    color: white;
    border-radius: 3px;
    font: inherit
}

.contact option {
    color: #111
}

.contact .primary {
    background: var(--accent)
}
.redes-sociales {
    display: flex;
    justify-content:center;
     background: var(--line);
    text-align: center;
    padding: 15px;
    align-items: center;
}

footer {
    padding: 20px 2%;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

footer .brand {
    color: var(--ink)
}

#inicio {
    background-color: rgb(224, 224, 224);
    
}

/*carrusel*/
.carousel-container {
    position: relative; 
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;

}

.carousel-slide {
    min-width: 100%;
    height: 70%;
    box-sizing: border-box;
    position: relative;
}

/* Altura por defecto para pantallas de computadoras */
.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 450px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 20px 20px 45px 20px;
    box-sizing: border-box;
}

.carousel-caption h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.carousel-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.button-left {
    left: 15px;
}

.button-right {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* --- OPTIMIZACIÓN PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 600px) {

    /* Reduce la altura del carrusel en móviles para que no ocupe toda la pantalla */
    .carousel-slide img {
        height: 130px;
    }

    /* Achica las flechas laterales para que no estorben el contenido visual */
    .carousel-button {
        padding: 10px;
        font-size: 14px;
    }

    .button-left {
        left: 8px;
    }

    .button-right {
        right: 8px;
    }

    /* Ajusta los textos para pantallas compactas */
    .carousel-caption {
        padding: 15px 15px 35px 15px;
    }

    .carousel-caption h3 {
        font-size: 16px;
    }

    .carousel-caption p {
        font-size: 12px;
    }

    /* Hace los puntos un poco más pequeños */
    .dot {
        width: 9px;
        height: 9px;
    }

    .carousel-dots {
        bottom: 10px;
    }

}
/* --- OPTIMIZACIÓN PARA CELULARES (Pantallas de hasta 768px) --- */
@media screen and (max-width: 768px) {
    
    body {
        font-size: 16px; /* Texto un poco más pequeño y legible en móviles */
        padding: 10px;   /* Menos margen en los bordes de la pantalla */
    }

    .contenedor {
        width: 100%;       /* Ocupa todo el ancho del celular */
        flex-direction: column; /* Si tenías columnas, ahora se ponen una debajo de otra */
    }
    .carousel-slide img {
        height: 180px;
    }

    /* Optimización de imágenes para que no se desborden */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Código para el botón de contacto que creamos antes */
    .boton-contacto {
        display: block;
        width: 90%;          /* El botón se estira para que sea fácil de tocar con el pulgar */
        margin: 15px auto;
        text-align: center;
    }
}
@media(max-width:800px) {
    nav {
        display: none
    }

    .menu {
        display: block
    }

    .hero,
    .contact,
    .showcase {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 60px
    }

    .hero-card {
        height: 320px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .benefit-grid {
        grid-template-columns: 1fr 1fr
    }

    .section,
    .showcase,
    .contact {
        padding: 70px 6%
    }
}

@media(max-width:480px) {
    .benefit-grid
     {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 43px
    }

    .actions {
        flex-direction: column
    }

    .button {
        width: 100%
    }
}