/* --- Variables y Reset --- */
:root {
    --color-bg: #ffffff;
    --color-text: #1d1d1f; 
    --color-text-light: #86868b;
    --color-accent: #ECAD85; 
    --font-main: 'Montserrat', sans-serif;
    --spacing-section: 120px;
}

html { scroll-behavior: smooth; }

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Estructura Base --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: var(--spacing-section) 0; }
.text-center { text-align: center; }
.section-header { margin-bottom: 48px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; }

/* --- Logo Fijo Superior Izquierdo --- */
.fixed-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.fixed-logo:hover {
    transform: scale(1.05);
}

.fixed-logo img {
    height: 35px; /* Altura base del logo */
    width: auto;
    display: block;
}

/* --- Navegación Flotante --- */
.floating-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05); padding: 12px 24px;
    border-radius: 50px; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.floating-nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.floating-nav a { text-decoration: none; color: var(--color-text); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.floating-nav a:hover { color: var(--color-accent); }
.nav-btn { background-color: var(--color-accent); color: white !important; padding: 8px 20px; border-radius: 20px; transition: transform 0.2s; }
.nav-btn:hover { transform: scale(1.05); }

/* --- Hero Section --- */
.hero {
    height: 100vh; background-image: url('../assets/images/hero.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative; color: #ffffff;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; }

/* --- El "Toque Apple" (Tarjetas) --- */
.apple-card {
    background: white; border-radius: 32px; padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }

/* --- EFECTO ZOOM EN IMÁGENES --- */
.image-wrapper {
    overflow: hidden; 
    border-radius: 20px;
    cursor: pointer;
}
.image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%; height: 100%; object-fit: cover;
}
.apple-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* --- Grids --- */
.gallery-grid, .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.tag {
    display: inline-block; background: #f5f5f7; padding: 6px 12px;
    border-radius: 12px; font-size: 0.8rem; font-weight: 600;
    color: var(--color-accent); margin-bottom: 12px;
}

/* --- Formulario de Contacto --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Ajustes para móviles */
@media (max-width: 768px) { 
    .contact-grid { grid-template-columns: 1fr; } 
    .floating-nav { width: 90%; overflow-x: auto; top: 80px; } /* Bajamos el menú */
    .fixed-logo { top: 20px; left: 20px; } /* Ajustamos el logo */
    .fixed-logo img { height: 28px; } /* Reducimos un poco el logo en móvil */
}

.dark-card { background-color: #2c2c2e; color: white; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px; margin-bottom: 16px; border: none;
    border-radius: 16px; background: #424245; color: white; font-family: inherit;
}
.btn-primary {
    background-color: var(--color-accent); color: white; border: none;
    padding: 16px 32px; border-radius: 24px; font-size: 1rem; font-weight: 600;
    cursor: pointer; width: 100%; transition: background-color 0.3s;
}
.btn-primary:hover { background-color: #d99a73; }

/* --- LIGHTBOX (Galería Ampliada) --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    align-items: center; justify-content: center; flex-direction: column;
    opacity: 0; transition: opacity 0.4s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-img {
    max-width: 90%; max-height: 80vh; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: 30px; right: 40px; color: white; font-size: 40px;
    cursor: pointer; font-weight: 300; transition: color 0.3s;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 40px; cursor: pointer; padding: 20px; transition: color 0.3s;
}
.lightbox-close:hover, .lightbox-nav:hover { color: var(--color-accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption { color: white; margin-top: 20px; font-size: 1.1rem; font-weight: 300;}

.site-footer { text-align: center; padding: 40px 0; background-color: #1d1d1f; color: #86868b; font-size: 0.875rem; }

/* ========================================================
   ANIMACIONES DE SCROLL (REVEAL)
   ======================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   BANNER DE COOKIES
   ======================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Oculto inicialmente por abajo */
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0); /* Sube suavemente */
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 16px;
        padding: 20px;
    }
    .cookie-banner p {
        text-align: center;
    }
    .cookie-banner button {
        width: 100% !important;
    }
}