/* Variables de colores */
:root {
    --color-primary: #e63946;
    /* Rojo de las franjas de la fachada pero más suave */
    --color-secondary: #457b9d;
    /* Color complementario */
    --color-accent: #fcd5ce;
    /* Color de acento suave */
    --color-dark: #1d3557;
    /* Color oscuro para textos */
    --color-light: #f8f9fa;
    /* Fondo claro */
}

/* CSS para optimizar carga */
html {
    scroll-behavior: smooth;
}

/* Animación para silueta */
@keyframes silhouetteMove {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    font-display: swap;
    /* Optimización de carga de fuentes */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Header y navegación */
header {
    background-color: var(--color-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-family: 'Brush Script MT', cursive;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 25px;
}

.menu a {
    color: white;
    font-weight: 500;
}

.menu a:hover {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* Hero section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('img/fachada1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Brush Script MT', cursive;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sección Acerca de */
.about {
    text-align: center;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-primary);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1em;
}


.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sección Productos */
.products {
    background-color: #f8f9fa;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-category {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-category-content {
    padding: 20px;
}

.product-category h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* Sección Galería */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Sección Contacto */
.contact {
    background-color: #f8f9fa;
    padding: 70px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    /* Cambiado de center a flex-start para alinear mejor en móvil */
    margin-bottom: 25px;
}

.contact-icon {
    min-width: 50px;
    /* Añadido min-width para que no se encoja en pantallas pequeñas */
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Previene que el icono se encoja */
}

.contact-item-content {
    flex-grow: 1;
    /* Permite que el contenido ocupe el espacio disponible */
}

/* Social Media */
.social-media {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        z-index: 1000;
    }

    .menu.active {
        left: 0;
    }

    .menu li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Ajuste específico para el bloque de horario en móvil */
    .contact-item {
        flex-wrap: nowrap;
        /* Asegura que no se envuelva en pantallas pequeñas */
    }

    .contact-icon {
        margin-top: 3px;
        /* Ajusta verticalmente el icono para mejor alineación */
    }

    /* Mejoras adicionales para dispositivos móviles */
    .product-category {
        margin-bottom: 20px;
    }

    .gallery-item {
        margin-bottom: 15px;
    }

    .hero-content {
        padding: 25px;
    }

    .contact-item-content h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}