* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #f0f0f0;
}

.container-header {
    background: #a76378;
    font-family: sans-serif;
    font-size: 25px;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.container-titulo {
    margin: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
}

a {
    text-decoration: none;
    color: #000;
}

ul {
    display: flex;
    margin: 35px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 30px;
    font-family: sans-serif;
    font-size: 25px;
}

li {
    padding: 10px;
    margin: 10px;
    border: 2px solid #000;
    border-radius: 15px;
    background: #f5a489;
}

@media (max-width: 768px) {
    .container-header {
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto; 
        text-align: center; 
    }

    .container-div-nav nav ul {
        justify-content: center;
        margin-top: 15px; 
    }

    .container-div-nav nav ul li {
        margin: 0 10px; 
        margin-bottom: 10px; 
    }

    
    .container-div-nav nav ul {
        flex-direction: column;
        align-items: center;
    }

    .container-div-nav nav ul li {
        margin: 5px 0; 
    }
}

@media (max-width: 480px) {
    .container-titulo h1 {
        font-size: 2em; 
    }

    .container-div-nav nav ul li a,
    .container-div-nav nav ul li {
        font-size: 1em; 
    }
}


.banner-index {
    background-image: url('./assets/img/banner.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    height: 300px; 
    color: white; 
    display: flex; 
    justify-content: center;
    align-items: center;
    font-size: 2em; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
}

.widget-1-index {
    background-image: url('../assets/img/banner.jpg'); 
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border: 1px solid #ddd; 
}


.widget-2-index {
    background-image: url('imagenes/dia-del-padre.jpg'); 
    background-size: cover;
    background-position: top center; 
    background-repeat: no-repeat;
    height: 250px;
    color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.widget-3-index {
    background-image: url('imagenes/sorteo-aniversario.webp'); 
    background-size: cover;
    background-position: bottom center; 
    background-repeat: no-repeat;
    height: 220px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.container-main-index {
    width: 90%;
    max-width: 1500px;
    margin: 20px auto;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(30, 50px);
    grid-template-areas: "banner-index  banner-index  banner-index"
                        "widget-1-index  widget-1-index  widget-1-index"
                        "widget-2-index  widget-2-index  widget-2-index" 
                        "widget-3-index  widget-3-index  widget-3-index"  ;
}

.banner-index {
    background-image: q;
}

.container-main-index .banner-index {
    grid-area: banner-index;
    grid-column: span 3;
    grid-row: 2 / 5;
    background: #f5a489;
    border: 2px solid #000;
    border-radius: 10px;
}

.container-main-index .widget-1-index {
    grid-area: widget-1-index;
    grid-column: span 3;
    grid-row: 8 / 12;
    background: #f5a489;
    border: 2px solid #000;
    border-radius: 10px;
}

.container-main-index .widget-2-index {
    grid-area: widget-2-index;
    grid-column: span 3;
    grid-row: 14 / 18;
    background: #f5a489;
    border: 2px solid #000;
    border-radius: 10px;
}

.container-main-index .widget-3-index {
    grid-area: widget-3-index;
    grid-column: span 3;
    grid-row: 20 / 24;
    background: #f5a489;
    border: 2px solid #000;
    border-radius: 10px;
}


/* ------------------TIENDA------------------- */

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f8f8f8;
}

.tienda {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.tienda section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a4a4a;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6f61;
    display: inline-block;
    width: auto;
}

.tienda .productos-grid .h2-card {
    font-size: 20px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-content h2 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    border-bottom: none;
    padding-bottom: 0;
}

.card-content p {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.card-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.card-content button:hover {
    background-color: #0056b3;
}


@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .tienda section h2 {
        font-size: 1.8em;
    }
}


@media (min-width: 577px) and (max-width: 991px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (min-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* -------CARRITO------ */

.carrito {
    
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; 
}


.cart-container {
    display: grid;
    align-items: center;
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: auto 1fr auto; 
    gap: 20px; 
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}


.cart-header {
    grid-column: 1 / -1; 
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.cart-items {
    grid-column: 1 / 2; 
}

.cart-summary {
    grid-column: 2 / 3; 
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}


.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.item-details p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
}

.item-price {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    display: block;
}

.item-actions input[type="number"] {
    width: 50px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.item-actions button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.item-actions button:hover {
    background-color: #c82333;
}


.cart-summary h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row span:first-child {
    color: #555;
}

.summary-row span:last-child {
    font-weight: bold;
    color: #333;
}

.summary-row.total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 15px;
    font-size: 1.2em;
}

.summary-row.total span:last-child {
    color: #007bff;
}

.checkout-button {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-button:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto auto; 
    }

    .cart-items,
    .cart-summary,
    .cart-header {
        grid-column: 1 / -1; 
    }

    .cart-summary {
        order: 3; 
    }

    .cart-header {
        order: 1;
    }

    .cart-items {
        order: 2;
    }

    .cart-item {
        flex-direction: column; 
        text-align: center;
    }

    .item-image {
        margin-bottom: 10px;
    }
}


/* --------NOSOTROS------ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0px;
    background-color: #f0f2f5;
}

.nosotros {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.grid-container > div {
    background-color: #e9ecef;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.grid-container h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
}

.grid-container p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}


/* --------CONTACTOS-------- */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

.page-container {
    display: grid;
    /* Define las áreas de la cuadrícula para un layout más claro */
    grid-template-areas:
        "header"
        "contact"
        "map"
        "form"
        "footer";
    /* Define el tamaño de las filas (se ajustarán al contenido) */
    grid-template-rows: auto auto auto auto auto;
    gap: 30px; /* Espacio entre las secciones */
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Asignación de elementos a las áreas de la cuadrícula */
.main-header {
    grid-area: header;
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.main-header h1 {
    color: #2c3e50;
    font-size: 2.8em;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.2em;
    color: #7f8c8d;
}

.contact-info {
    grid-area: contact;
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    color: #34495e;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.info-item i {
    color: #3498db;
    margin-right: 15px;
    font-size: 1.4em;
    width: 25px; /* Para alinear los textos si los iconos tienen distinto ancho */
    text-align: center;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: #3498db;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.map-section {
    grid-area: map;
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.map-section h2 {
    color: #34495e;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    border-radius: 8px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: none;
    border-radius: 8px;
}

.contact-form {
    grid-area: form;
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    color: #34495e;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Incluye padding en el ancho total */
}

.form-group textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #27ae60;
}

.main-footer {
    grid-area: footer;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* --- Media Queries para Responsividad con CSS Grid --- */

@media (min-width: 769px) {
    .page-container {
        /* Para pantallas más grandes, el mapa y el formulario pueden ir uno al lado del otro */
        grid-template-areas:
            "header header"
            "contact map"
            "form form" /* O "form ." si el formulario no debe abarcar todo el ancho */
            "footer footer";
        grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */
    }

    .contact-info {
        grid-area: contact; /* Se mantiene en la primera columna */
    }

    .map-section {
        grid-area: map; /* Se mueve a la segunda columna */
    }

    /* Si quieres el formulario en una sola columna debajo del mapa y contacto */
    .contact-form {
        grid-area: form;
        grid-column: 1 / -1; /* Ocupa ambas columnas */
    }
}

@media (min-width: 1024px) {
    .page-container {
        /* Para pantallas muy grandes, quizás 3 columnas o un diseño más complejo */
        grid-template-areas:
            "header header header"
            "contact map form"
            "footer footer footer";
        grid-template-columns: 1fr 2fr 1.5fr; /* Ejemplo: contacto, mapa grande, formulario */
    }
}


/* ---------FOOTER-------- */

footer {
    background-color: #333;
    color: #fff;
    padding: 25px 20px;
    margin-top: auto; 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    align-items: center; 
}


footer > div:first-child {
    text-align: left; 
}

footer > div:last-child {
    text-align: right; 
}

footer > div:last-child a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer > div:last-child a:hover {
    color: #007bff;
}


@media (max-width: 768px) {
    footer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto; 
        padding: 20px 15px; 
    }

    
    footer > div:first-child,
    footer > div:last-child {
        text-align: center; 
    }

    footer > div:last-child {
        margin-top: 15px; 
    }
}

@media (max-width: 480px) {
    footer > div:last-child a {
        font-size: 1.3em; 
    }
}