/* Estilos Principales - La Mukkeria Formentera */

:root {
    --primary-color: #d15b70;    /* Rosa elegante artesanal */
    --accent-pink: #ffb7c5;      /* Rosa claro de realce */
    --dark-neutral: #2c2523;     /* Marrón café muy oscuro para texto principal */
    --light-bg: #faf6f5;         /* Crema suave de fondo */
    --white: #ffffff;
    --text-muted: #6e6563;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-neutral);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-neutral); }
.bg-white { background-color: var(--white); }

/* Header & Navegación */
header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: block;
    overflow: hidden;
    padding: 15px 20px;
}

.logo {
    float: left;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}

.logo-text-group {
    display: inline-block;
    vertical-align: middle;
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.accent-k {
    color: #e68a9b;
}

.tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    color: var(--text-muted);
    margin-top: -4px;
}

nav {
    float: right;
    margin-top: 8px;
}

nav a {
    color: var(--dark-neutral);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 37, 35, 0.4), rgba(44, 37, 35, 0.4)), url('https://lh3.googleusercontent.com/gps-cs-s/APNQkAGwLi6QQ_QHUM5gTDzySrr2_84T4U13z2C2gMIBLoa_Repo--mLKthn6JrgeJ0xkFrG4QixS1iHPt5dsXmQAHya3o-o3IbmI07w3ccVXY2zy3BDtcxg6cCb1pUePolKrZHWQjGSp7nY1FkN=s1360-w1360-h1020-rw') no-repeat center center/cover;
    height: 70vh;
    min-height: 450px;
    display: block;
    position: relative;
    text-align: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
}

.hero h1 {
    font-family: 'Georgia', serif;
    font-size: 44px;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #bd4b5f;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Secciones Genéricas */
.section {
    padding: 70px 0;
    overflow: hidden;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    color: var(--dark-neutral);
}

.lead {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-style: italic;
}

/* Layout De Historia con Imagen Lateral */
.history-layout {
    overflow: hidden;
    margin-bottom: 30px;
}

.history-text {
    width: 65%;
    float: left;
    padding-right: 5%;
}

.history-image-side {
    width: 35%;
    float: right;
    text-align: center;
}

.side-logo-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Cuadrícula de Valores */
.values-grid {
    margin-top: 45px;
    overflow: hidden;
}

.value-card {
    width: 31%;
    float: left;
    margin-right: 3.5%;
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
}

.value-card:last-child {
    margin-right: 0;
}

.value-card h3 {
    margin-bottom: 12px;
    color: var(--dark-neutral);
    font-size: 18px;
}

/* Nueva Sección: Cuadrícula de 6 Imágenes con Vibración */
.gallery-grid {
    overflow: hidden;
    margin-top: 20px;
}

.gallery-item {
    width: 31.33%;
    float: left;
    margin-right: 3%;
    margin-bottom: 3%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item:nth-child(3n) {
    margin-right: 0;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    /* Efecto al cargar: 1 segundo de vibración */
    animation: shakeEffect 1s ease-in-out;
    transition: transform 0.2s;
}

/* Efecto al pasar el ratón: Vibración continua */
.gallery-item img:hover {
    animation: shakeEffect 0.5s ease-in-out infinite;
}

/* Animación de vibración (Shake) */
@keyframes shakeEffect {
    0% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-2px, 1px) rotate(-1deg); }
    30% { transform: translate(1px, -1px) rotate(1deg); }
    45% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(2px, 1px) rotate(1deg); }
    75% { transform: translate(-1px, -1px) rotate(-0.5deg); }
    90% { transform: translate(1px, 1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Lista de Productos */
.products-list {
    overflow: hidden;
}

.product-item {
    width: 48%;
    float: left;
    margin-bottom: 30px;
    background-color: var(--white);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.product-item:nth-child(even) {
    float: right;
}

.product-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-neutral);
}

/* Reseñas */
.reviews-grid {
    overflow: hidden;
    margin-top: 20px;
}

.review-card {
    width: 31%;
    float: left;
    margin-right: 3.5%;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 6px;
    background-color: var(--white);
}

.review-card:last-child {
    margin-right: 0;
}

.stars {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 16px;
}

.review-text {
    font-size: 14px;
    font-style: italic;
    color: #4a4240;
    margin-bottom: 15px;
}

.review-author {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    display: block;
}

/* Footer / Contacto Layout */
.footer-layout {
    overflow: hidden;
}

.footer-info {
    width: 50%;
    float: left;
    padding-right: 40px;
}

.footer-info h3 {
    font-family: 'Georgia', serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--accent-pink);
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-map {
    width: 50%;
    float: right;
}

.footer-map h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.map-placeholder {
    background-color: #3d3431;
    border: 1px solid #4a3e3b;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
}

.map-placeholder p {
    margin-bottom: 15px;
}

.small { font-size: 12px; }

footer {
    background-color: #1e1918;
    color: #8c807d;
    padding: 20px 0;
    font-size: 12px;
    border-top: 1px solid #2c2523;
}

/* Limpieza de floats (Clearfix) */
.navbar::after, .history-layout::after, .values-grid::after, .gallery-grid::after, .products-list::after, .reviews-grid::after, .footer-layout::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsivo Simple */
@media (max-width: 768px) {
    .logo { float: none; justify-content: center; margin-bottom: 10px; }
    nav { float: none; text-align: center; }
    nav a { margin: 0 10px; display: inline-block; }
    .history-text, .history-image-side, .gallery-item, .value-card, .product-item, .review-card, .footer-info, .footer-map {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
    }
    .footer-info { padding-right: 0; }
    .hero h1 { font-size: 32px; }
    .gallery-item img { height: 250px; }
}