/* --- ESTILOS GENERALES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --color-primario: #2c3e50;
    --color-acento: #eab308;
    --color-fondo: #ffffff;
    --color-texto: #333;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}
a { text-decoration: none; color: inherit; }
main { display: block; }

/* --- HEADER DE LA TIENDA --- */
.header-tienda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--color-fondo);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { max-height: 50px; }
.navegacion-principal a { margin: 0 1rem; font-weight: 600; transition: color 0.3s; font-size: 1rem; }
.navegacion-principal a:hover { color: var(--color-acento); }
.iconos-container .icono { margin-left: 1.5rem; font-size: 26px; }
.material-icons { vertical-align: middle; }

/* --- CONTADOR CARRITO --- */
.icono-carrinho-wrapper { position: relative; display: inline-flex; align-items: center; }
.contador-carrinho { position: absolute; top: -8px; right: -10px; background-color: #e74c3c; color: white; border-radius: 50%; padding: 1px 6px; font-size: 11px; font-weight: bold; border: 2px solid white; }

/* --- HERO SLIDER --- */
.hero-slider { width: 100%; height: 75vh; min-height: 450px; }
.swiper-slide { display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; color: white; text-align: center; padding: 1rem; }
.slide-content { max-width: 90%; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.slide-content h1 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.2; }
.slide-content p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.btn-slider { background-color: var(--color-acento); color: var(--color-primario); padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s; display: inline-block; }
.btn-slider:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.swiper-button-next, .swiper-button-prev { --swiper-navigation-size: 30px; color: var(--color-acento); }
.swiper-pagination-bullet-active { background: var(--color-acento); }

/* --- PÁGINA TIENDA Y PRODUCTOS --- */
.container-pagina { max-width: 1200px; margin: 3rem auto; padding: 0 1rem; }
.titulo-pagina { text-align: center; font-size: 2.5rem; margin-bottom: 2.5rem; color: var(--color-primario); }
.grid-productos { display: grid; grid-template-columns: repeat(2, 1fr); /* <-- LÍNEA CAMBIADA */ gap: 1rem; }
.card-producto { background-color: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.card-producto:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.imagen-producto-card { width: 100%; height: 250px; object-fit: cover; }
.info-producto-card { padding: 1rem; text-align: center; flex-grow: 1; }
.nombre-producto-card { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.precio-producto-card { font-size: 1.2rem; font-weight: 700; color: var(--color-acento); margin: 0; }
.btn-anadir-carrito { display: block; width: 100%; padding: 1rem; background-color: var(--color-primario); color: white; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.3s; }
.btn-anadir-carrito:hover { background-color: #1a2531; }

/* --- PÁGINA DETALLE DE PRODUCTO Y GALERÍA (VERSIÓN SIMPLE) --- */
.detalle-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* <-- CAMBIO APLICADO AQUÍ */
    gap: 2rem; 
    margin-top: 2rem; 
}
.detalle-imagen #imagen-principal-preview { width: 100%; border-radius: 8px; border: 1px solid #eee; height: auto; max-height: 500px; object-fit: contain; }
.galeria-miniaturas { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.galeria-miniaturas img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; }
.galeria-miniaturas img:hover { border-color: var(--color-acento); }
.galeria-miniaturas img.miniatura-activa { border-color: var(--color-primario); }
.detalle-nombre { font-size: 2.2rem; color: var(--color-primario); margin: 0 0 1rem 0; }
.detalle-precio { font-size: 2rem; font-weight: 700; color: var(--color-acento); margin: 0 0 1.5rem 0; }
.detalle-descripcion { line-height: 1.8; margin-bottom: 2rem; }
.detalle-acciones { display: flex; flex-direction: column; gap: 1rem; }
.btn-anadir-carrito-grande { padding: 1rem; font-size: 1.2rem; font-weight: 700; background-color: var(--color-acento); color: var(--color-primario); border: none; border-radius: 5px; cursor: pointer; transition: transform 0.2s; }
.btn-anadir-carrito-grande:hover { transform: scale(1.02); }
.btn-volver { text-align: center; color: #777; text-decoration: underline; }

/* --- PÁGINA DEL CARRITO --- */
.tabela-carrinho { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: 1rem; }
.tabela-carrinho th, .tabela-carrinho td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.tabela-carrinho thead th { background-color: #f8f8f8; font-weight: 600; }
.tabela-carrinho tfoot td { font-weight: 700; font-size: 1.2rem; }
.tabela-carrinho tfoot td:first-child { text-align: right; }
.carrinho-acoes { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.carrinho-acoes > div { display: flex; gap: 1rem; }
.btn-primario, .btn-secundario, .btn-perigo { padding: 1rem 1.5rem; border-radius: 5px; font-weight: 600; text-align: center; border: none; cursor: pointer; }
.btn-primario { background-color: var(--color-acento); color: var(--color-primario); }
.btn-secundario { background-color: #eee; color: #333; }
.btn-perigo { background-color: #e74c3c; color: white; }

/* --- SECCIONES DE CONTENIDO --- */
.seccion-caracteristicas { background-color: #fff; padding: 3rem 1rem; }
.caracteristicas-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.caracteristica-item { text-align: center; }
.caracteristica-item .material-icons { font-size: 48px; color: var(--color-acento); margin-bottom: 1rem; }
.caracteristica-item h3 { margin: 0 0 0.5rem 0; color: var(--color-primario); }
.caracteristica-item p { margin: 0; color: #666; }

.seccion-redes-sociales { background-color: #f4f6f9; padding: 4rem 1rem; text-align: center; }
.seccion-redes-sociales h2 { font-size: 2rem; color: var(--color-primario); margin: 0 0 2rem 0; }
.redes-iconos-container { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.red-social-icono { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; background-color: var(--color-primario); color: white; border-radius: 50%; transition: transform 0.3s ease, background-color 0.3s ease; }
.red-social-icono svg { width: 24px; height: 24px; }
.red-social-icono:hover { transform: translateY(-5px); background-color: var(--color-acento); color: var(--color-primario); }

.seccion-contacto { background-size: cover; background-position: center; background-attachment: fixed; padding: 5rem 1rem; text-align: center; color: white; position: relative; }
.seccion-contacto::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6); z-index: 1; }
.contacto-contenido { position: relative; z-index: 2; }
.contacto-contenido h2 { font-size: 2.5rem; margin: 0; }
.contacto-contenido p { font-size: 1.2rem; margin: 0.5rem 0 2rem 0; }
.contacto-items { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.8rem; }
.contacto-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 600; }
.contacto-item a { color: white; transition: color 0.3s; }
.contacto-item a:hover { color: var(--color-acento); }

/* --- FOOTER --- */
.footer-tienda { background-color: #fff; padding: 2rem 1rem; border-top: 1px solid #eee; margin-top: 3rem; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.footer-nav, .footer-copyright { flex: 1; min-width: 200px; }
.footer-nav { display: flex; gap: 1.5rem; justify-content: flex-start; }
.footer-nav a { font-weight: 600; transition: color 0.3s; font-size: 1rem; }
.footer-nav a:hover { color: var(--color-acento); }
.footer-logo { text-align: center; }
.footer-logo .logo { max-height: 75px; }
.footer-copyright { text-align: right; font-size: 0.9rem; color: #777; }

/* --- AJUSTES RESPONSIVOS (MEDIA QUERIES) --- */
@media (min-width: 768px) {
    .hero-slider { height: 70vh; }
    .slide-content h1 { font-size: 3.5rem; }
    .slide-content p { font-size: 1.2rem; }
    .btn-slider { padding: 1rem 2.5rem; }
    .detalle-container { grid-template-columns: 1fr 1fr; }
    .detalle-acciones { flex-direction: row; align-items: center; }
    .caracteristicas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-nav { order: 2; justify-content: center; }
    .footer-logo { order: 1; }
    .footer-copyright { order: 3; text-align: center; }
}
/* --- ESTILOS PARA EL MAPA EMBEBIDO --- */
.mapa-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden; /* Asegura que el iframe respete el borde redondeado */
    line-height: 0; /* Elimina espacios extra debajo del iframe */
}

.mapa-container iframe {
    width: 100%;
    max-width: 600px; /* Ancho máximo para el mapa */
    height: 300px; /* Altura del mapa */
    border: 3px solid var(--color-acento);
    border-radius: 8px;
}