/* Estilos base para dispositivos móviles (Mobile-First) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: white;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

header {
    background-color: #000000;
    color: white;
    padding: 15px 10px;
    text-align: center;
}

/* Logos del encabezado: centrados y adaptables */
.contenedor-imagenes-centrado-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Regla general para todas las imágenes en el header */
.contenedor-imagenes-centrado-flex img {
    max-width: 25%;
    height: auto;
    flex-shrink: 1; /* Permite que los logos se achiquen */
}

/* NUEVA REGLA: El logo principal se verá más grande */
.logo-principal {
    max-width: 40% !important; /* Más grande en móviles */
}

.header-contact-info {
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: whitesmoke;
}

/* Barra de navegación */
nav {
    display: flex;
    justify-content: center;
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-wrap: wrap; 
}

nav a {
    color: white;
    padding: 10px 10px;
    margin: 5px 2px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    flex-shrink: 0;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: #1abc9c;
}

.container {
    margin: 15px;
    padding: 15px;
}

h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    text-align: center;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Contenido de contacto centrado */
.phone-contact {
    text-align: center;
}

#donde-encontrarnos h2 {
    margin-top: 20px;
}

#donde-encontrarnos > p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
}

/* Marcas y pagos */
.logo-container, .payment-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.logo-container img, .payment-grid img {
    width: 15%;
    max-width: 100px;
    height: auto;
    min-width: 40px;
    flex-shrink: 1;
    object-fit: contain;
    border: 1px solid black;
    padding: 4px;
    background-color: white;
    border-radius: 3px;
}

.productos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.producto {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.2s;
    flex-basis: auto;
}

.producto:hover {
    transform: scale(1.01);
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.producto h3 {
    margin-top: 10px;
    font-size: 1.1em;
    color: #2980b9;
}

.precio {
    color: #e67e22;
    font-weight: bold;
    margin-top: 8px;
    font-size: 1em;
}

/* Sección de Quiénes Somos: Recuadros Interactivos */
.values-grid, .goals-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.value-card, .goal-card {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.value-card h3, .goal-card h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.3em;
}

.value-card p, .goal-card p {
    margin: 0;
}

.value-card:hover, .goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Footer y contacto */
.contact-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 20px 10px;
    margin-top: 30px;
    gap: 20px;
    text-align: center;
}

.contact-footer .footer-content {
    text-align: center;
}

.contact-footer .footer-image-container {
    text-align: center;
    order: -1;
    margin-bottom: 20px;
}

.contact-footer .footer-image-container img {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
}

.contact-footer h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.contact-footer p {
    margin: 10px 0;
    font-size: 1em;
}

.contact-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.contact-columns .column-left,
.contact-columns .column-right {
    flex: 1 1 auto;
    text-align: center;
}

/* NUEVA REGLA PARA LOS ICONOS DE REDES SOCIALES */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.social-links h4 {
    margin: 0;
    font-size: 1em;
    color: #ccc;
}

.social-links a {
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.social-links a:hover {
    color: #1abc9c;
}

.copyright-footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
}

/* Sección del mapa y horarios */
.map-and-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 95%;
    margin: 20px auto;
}

.map-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-column iframe {
    width: 100%;
    height: 300px;
    display: block;
    margin-bottom: 10px;
}

.horarios-image {
    width: 85%;
    height: auto;
    max-width: 400px;
}

/* Imagen del negocio */
.full-width-image-container {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Media Queries para pantallas más grandes --- */

@media screen and (min-width: 768px) {
    body {
        font-size: 18px;
    }
    header {
        padding: 20px;
    }
    .contenedor-imagenes-centrado-flex img {
        max-width: 25%;
    }
    .logo-principal {
        max-width: 25% !important;
    }
    .header-contact-info {
        font-size: 1.3em;
    }
    nav a {
        padding: 10px 15px;
        margin: 5px;
        font-size: 1em;
    }
    .container {
        margin: 20px auto;
        padding: 20px;
        max-width: 95%;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }
    .productos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .producto {
        flex-basis: calc(50% - 15px);
    }
    .contact-footer {
        flex-direction: row;
        justify-content: space-between; 
        text-align: left;
        gap: 20px;
    }
    .contact-footer .footer-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .contact-footer .footer-image-container {
        order: 1;
        margin-left: 20px;
    }

    .contact-columns {
        flex-direction: row;
        width: auto;
        justify-content: center;
    }

    .contact-columns .column-left {
        flex: 1; 
        text-align: left;
    }

    .contact-columns .column-right {
        flex: 1; 
        text-align: left;
        margin-left: 20px;
    }

    .contact-footer .footer-image-container img {
        max-width: 80%; /* Tamaño del logo ajustado para ser más grande */
    }
    .map-and-image-wrapper {
        flex-direction: row;
        justify-content: space-around;
        width: 90%;
    }
    .map-column {
        width: 45%;
        align-items: flex-start;
    }
    .map-column iframe {
        height: 350px;
    }
    .horarios-image {
        width: 45%;
    }
    .phone-contact {
        max-width: 300px;
        margin: 0 auto;
    }
    .values-grid, .goals-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Punto de quiebre para ordenadores de escritorio */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    .producto {
        flex-basis: calc(25% - 20px);
    }
    .map-column, .horarios-image {
        width: 40%;
    }
}

/* Punto de quiebre para escritorios grandes */
@media screen and (min-width: 1440px) {
    body {
        font-size: 20px;
    }
}