@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", serif;
}

:root {
    --text-color: #fff;
    --bg-color: #131313;
    /* --main-color: #ffa343; */
    --main-color: #ffc0a9;

    --h1-font: 3.5rem;
    --h2-font: 2.5rem;
    --p-font: 1rem;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Estilos Header */

header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    padding: 27px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .50s ease;
}

header.sticky {
    background-color: var(--bg-color);
    padding: 14px 13%;
}

.logo {
    font-size: 30px;
    /* Tamaño del texto "Marbella" */
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    /* Alinea el texto en la misma altura */
    gap: 5px;
    /* Espacio entre "Marbella" y el span */
}

.logo span {
    font-size: 12px;
    /* Tamaño más pequeño */
    line-height: 1;
    /* Ajusta la altura del texto */
    display: flex;
    flex-direction: column;
    /* Coloca "&Diseño" debajo de "Muebles" */
    color: var(--main-color);
}

/* .logo {
    font-size: 30px;
    color: var(--text-color);
    font-weight: 700;
}

span {
    color: var(--main-color);
    font-size: 10px;
} */

.navbar {
    display: flex;
}

.navbar a {
    color: var(--text-color);
    font-size: var(--p-font);
    font-weight: 500;
    margin: 15px 22px;
    transition: all .50s ease;
}

.navbar a:hover {
    color: var(--main-color);
}

.h-right {
    display: flex;
    align-items: center;
}

.h-right a:first-child {
    color: var(--text-color);
    font-size: var(--p-font);
    margin-right: 20px;
}

.h-right a {
    vertical-align: middle;
    font-size: 20px;
    color: var(--text-color);
    margin-right: 18px;
    margin-left: 5px;
    transition: all .50s ease;
}

.h-right a:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

#menu-icon {
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}

.home {
    padding: 70px 17% 60px;
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url(../images/background.webp);
    background-size: cover;
    background-position: bottom center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-text h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--main-color);
}

.home-text h1 {
    font-size: var(--h1-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-text p {
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 30px;
    /* color: #ffffffab; */
    margin-bottom: 35px;
    text-align: justify;
    width: 60%; /* Ancho del 70% en pantallas grandes */
    max-width: 1200px; /* Para que no sea demasiado ancho en monitores grandes */
}

.btn {
    color: var(--bg-color);
    display: inline-block;
    padding: 13px 40px;
    background: var(--main-color);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all .50s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateX(10px);
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
}

@media screen and (max-width: 1700px) {
    header {
        padding: 18px 8%;
    }

    header.sticky {
        padding: 7px 8%;
    }

    .home {
        padding: 50px 8% 40px;
    }
}

@media (max-width:1200px) {
    header {
        padding: 14px 5%;
    }

    header.sticky {
        padding: 7px 5%;
    }

    .home {
        padding: 45px 5% 35px;
        height: 90vh;
    }

    :root {
        --h1-font: 3.5rem;
        --h2-font: 2.5rem;
        --p-font: 15px;
    }
}

@media (max-width:1020px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        width: 100%;
        height: 100vh;
        padding: 40px 60px;
        top: 0;
        bottom: 0;
        left: 100%;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }

    .navbar a {
        display: block;
        color: #979797;
        padding: 0;
        margin: 0px 0px 40px 0px;
        font-size: 2.2rem;
        font-weight: 400;
    }

    .navbar.open {
        left: 0;
    }

    .home-text p{
        width: 99%; /* Ancho del 99% en tablets y celulares */
    }

}

@media (max-width:600px) {
    :root {
        --h1-font: 2.4rem;
        /* --h2-font: 1.2rem; */
    }

    .home {
        height: 90vh;
    }
}

@media (max-width:500px) {
    :root {
        --h2-font: 1.6rem;
    }
}

@media (max-width:450px) {
    header {
        padding: 12px 3%;
    }

    header.sticky {
        padding: 7px 3%;
    }

    .home {
        padding: 170px 3% 50px;
    }

    span {
        display: none;
    }
}

/* Estilos Section 1 */

.infinite {
    background: transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0px;
}

/* Contenedor del carrusel */
.carousel-container {
    overflow: hidden;
    width: 100%;
    /* O el tamaño que prefieras */
    position: relative;
    white-space: nowrap;
}

/* Contenedor de las imágenes duplicadas */
.carousel-track {
    display: flex;
    animation: slide 30s linear infinite;
}

/* Imágenes dentro del carrusel */
.t-img {
    display: flex;
}

.t-img img {
    width: 250px;
    /* Mantiene el mismo ancho en todas las imágenes */
    height: 300px;
    /* Mantiene la misma altura */
    object-fit: cover;
    /* Recorta la imagen sin distorsionarla */
    border-radius: 8px;
    /* Opcional: bordes redondeados */
    margin: 3px 5px;
    /* Espaciado entre imágenes */
    vertical-align: middle;
    /* Alineación vertical */
}

/* Animación continua */
@keyframes slide {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
        /* Mueve solo la mitad del contenido */
    }
}


.introduction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: var(--bg-color);
    padding: 50px 5%;
    flex-wrap: wrap; /* Para hacerlo responsivo */
}

.left-text {
    flex: 1;
    max-width: 600px;
}

.left-text h2 {
    font-size: var(--h2-font);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    text-decoration: underline;
}

.left-text p {
    font-size: var(--p-font);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.7;
    text-align: justify;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.about-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-box p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--main-color);
}

/* Efecto hover */
.about-box:hover {
    transform: scale(1.05);
    background: var(--bg-color);
    color: white;
}

/* Imagen */
.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-right img {
    width: 100%;
    max-width: 550px;
    height: 100%; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .introduction {
        flex-direction: column;
        text-align: center;
    }

    .left-text {
        max-width: 100%;
    }

    .about-right img {
        max-width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

/* Styles Servicios */

/* Sección de Productos */
.course {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

/* Títulos y párrafos */
.middle-text {
    text-align: center;
    margin-bottom: 30px;
}

.middle-text h2 {
    font-size: var(--h2-font);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    text-decoration: underline;
}

.middle-text p {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--text-color);
    line-height: 30px;
    margin: 25px auto;
    width: 85%;
}

/* Responsive para hacer el texto más ancho en móviles */
@media (max-width: 768px) {
    .middle-text p {
        width: 99%;
    }
}

/* Contenedor principal de los productos */
.course-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Se ajusta dinámicamente */
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Estilos de cada box */
.box {
    background: #bebebe;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

/* .box:hover {
    transform: scale(1.03);
} */

/* Imagen dentro del box */
.box-img {
    overflow: hidden;
    border-radius: 15px 15px 0px 0px;
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ddcccc;
}

.box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que todas las imágenes mantengan su proporción */
    transition: transform 0.6s;
    cursor: pointer;
}

.box-img img:hover {
    transform: scale(1.06);
}

/* Texto dentro del box */
.box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 15px 0 5px;
}

.box p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    margin: 0 15px 15px;
}

/* Botón */
.btn-3 {
    display: inline-block;
    /* background: linear-gradient(135deg, #4A90E2, #002F6C); */
    background: var(--main-color);
    color: #111;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-3:hover {
    /* background: linear-gradient(135deg, #002F6C, #4A90E2); */
    background: var(--main-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* RESPONSIVIDAD */
@media (max-width: 767px) {
    .course-content {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Cada box ocupa el 100% */
        gap: 15px;
        padding: 15px;
    }

    .box {
        max-width: 100%;
    }
}

/* Estilos del footer */
.footer {
    background: #000;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Espaciado entre columnas */
.footer-col {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* Espaciado para los textos */
.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Estilos para los íconos de redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--main-color);
}

/* Botón de contacto */
.btn-footer {
    display: inline-block;
    background: var(--main-color);
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.4s;
}

.btn-footer:hover {
    background: #000;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

/* Línea separadora y dirección */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.8;
}

.footer-bottom a{
    color: lightgray;
    text-decoration: none;
}

.footer-bottom a:hover{
    color: lightgray;
}

/* Responsividad */
@media (max-width: 767px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .carousel-track {
        display: flex;
        animation: slide 15s linear infinite;
    }
}