/* Estilos Globales para Decora con Armonía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.swiper,
.swiper-wrapper,
.swiper-slide,
.swiper-button-next,
.swiper-button-prev {
    margin: unset;
    padding: unset;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4a4a4a;
    background-color: #fbfaf7;
    line-height: 1.6;
}

/* Navegación */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eae5dc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Reduje un poco el padding vertical para estilizar el header con el logo */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 150px; /* Ajusta esta altura (en píxeles) para que tu logo tenga el tamaño ideal */
    width: auto;  /* Esto mantiene la proporción original de tu diseño sin distorsionarlo */
    display: block;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #5c6b64; /* Verde musgo elegante */
    text-decoration: none;
    letter-spacing: 1px;
}

nav a {
    margin-left: 50px;
    text-decoration: none;
    color: #6e6e6e;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #5c6b64;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #3e4743;
    cursor: pointer;
    padding: 5px;
}

/* Contenedor Principal */
.contenedor {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* Secciones / Héroe */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #f3efe6;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    color: #3e4743;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #7a7a7a;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.btn {
    display: inline-block;
    background-color: #5c6b64;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #48544e;
}

/* Carrusel de Catálogo */
.swiper-catalogo {
    margin-top: 30px;
    padding: 0 60px;
    overflow: visible;
}

.swiper-catalogo .swiper {
    padding-bottom: 20px;
    overflow: hidden;
}

.swiper-catalogo .swiper-slide {
    justify-content: center;
}

.swiper-catalogo .tarjeta {
    width: 100%;
    cursor: pointer;
}

.swiper-catalogo .swiper-button-prev,
.swiper-catalogo .swiper-button-next {
    color: #5c6b64;
    z-index: 10;
}

.swiper-catalogo .swiper-button-prev:hover,
.swiper-catalogo .swiper-button-next:hover {
    color: #48544e;
}

/* Galería */
.swiper-galeria {
    margin-top: 30px;
    padding: 0 60px;
    overflow: visible;
}

.swiper-galeria .swiper {
    padding-bottom: 20px;
    overflow: hidden;
}

.swiper-galeria .swiper-slide {
    justify-content: center;
}

.swiper-galeria .swiper-button-prev,
.swiper-galeria .swiper-button-next {
    color: #5c6b64;
    z-index: 10;
}

.swiper-galeria .swiper-button-prev:hover,
.swiper-galeria .swiper-button-next:hover {
    color: #48544e;
}

.galeria-slide {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eae5dc;
    cursor: pointer;
}

.galeria-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galeria-slide:hover img {
    transform: scale(1.05);
}

.galeria-vacia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: #f3efe6;
    border-radius: 8px;
    border: 1px solid #eae5dc;
    color: #6e6e6e;
}

.galeria-vacia i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #5c6b64;
}

.galeria-vacia p {
    font-size: 18px;
}

.tarjeta {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eae5dc;
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.img-placeholder {
    width: 100%;
    height: 400px; /* Altura ideal para las fotos del catálogo */
    background-color: #e2ded5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.tarjeta-info {
    padding: 20px;
}

.tarjeta-info h3 {
    color: #3e4743;
    margin-bottom: 10px;
}

/* Formularios */
.form-contacto {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eae5dc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3e4743;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-control:focus {
    border-color: #5c6b64;
    outline: none;
}

/* Footer */
footer {
    background-color: #3e4743;
    color: #eae5dc;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
}

.social-links .fa-facebook {
    color: #1877F2;
    font-size: 48px;
}

.social-links .fa-instagram {
    color: #E4405F;
    font-size: 48px;
}

.social-links .fa-whatsapp {
    color: #25D366;
    font-size: 48px;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ¡Esta propiedad es la magia! Recorta y adapta la foto proporcionalmente sin deformarla */
    display: block;
    transition: transform 0.3s ease; /* Le dará un ligero efecto visual al pasar el cursor */
}

.tarjeta:hover .img-placeholder img {
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #eae5dc;
        padding: 15px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        z-index: 999;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin-left: 0;
        margin: 10px 0;
        font-size: 16px;
    }

    .logo-img {
        height: 100px;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .swiper-catalogo {
        padding: 0 30px;
    }

    .form-contacto {
        padding: 25px;
    }

    .swiper-galeria {
        padding: 0 30px;
    }

    .galeria-slide {
        height: 400px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .logo-img {
        height: 80px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    .swiper-catalogo {
        padding: 0 15px;
    }

    .swiper-catalogo .swiper-button-prev,
    .swiper-catalogo .swiper-button-next {
        font-size: 18px;
    }

    .form-contacto {
        padding: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .swiper-galeria {
        padding: 0 15px;
    }

    .swiper-galeria .swiper-button-prev,
    .swiper-galeria .swiper-button-next {
        font-size: 18px;
    }

    .galeria-slide {
        height: 300px;
    }
}