/* --- Global Styles & Variables --- */
:root {
    --bg-color: #fcfbf9; /* Warm, creamy off-white */
    --text-main: #2c2a29; /* Charcoal, softer than harsh black */
    --text-muted: #73706e;
    --accent-color: #bfa58a; /* Warm muted beige/gold */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
}

/* --- Typography & Utilities --- */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.4s ease;
    border: 1px solid var(--text-main);
    cursor: pointer;
}

.hero .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff; 
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    background-color: transparent;
    position: absolute; /* Lets hero image flow under it */
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Base Section Padding --- */
section {
    padding: 120px 8%;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    
    
    /* The dark overlay + your background image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/SD/_DSC6757.jpg');
    background-size: cover;
    background-position: center;
}
.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color:#cccccc;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* --- Gallery Categories --- */
.gallery-category {
    margin-bottom: 80px;
}
/* --- Gallery Section (Make sure this is in your CSS!) --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: center;
}

.photo-item {
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}
.gallery-category:last-child {
    margin-bottom: 0;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 1px;
    position: relative;
}

/* Adds a subtle elegant line below the category titles */
.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* --- Sub-page Header (For the new pages) --- */
/* --- Nuevo Encabezado con Imagen para Paquetes --- */
.page-header {
    min-height: 400px; /* Le da altura para que se vea la foto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 8% 60px 8%;
    
    /* Imagen de fondo con capa oscura */
    /* RECUERDA: Cambia 'images/SD/tu-foto-paquetes.jpg' por el nombre real de tu archivo */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/SD/_DSC6757.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff; /* Texto blanco */
}

/* Ajustamos los textos dentro del encabezado para que brillen en blanco */
.page-header h1 {
    font-size: 4rem;
    color: var(--accent-color) !important; /* This forces the accent color to win */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header .back-link {
    color: #eaeaea;
    border: 1px solid #ffffff;
    padding: 8px 20px;
    border-radius: 2px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.page-header .back-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* --- About Section --- */
.about-content {
    display: flex;
    align-items: flex-start; /* Changed from center */
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.signature {
    margin-top: 30px;
    opacity: 0.7;
    max-width: 180px; /* Adjust this number if you want it smaller/larger */
    height: auto;
}

/* --- Contact Section --- */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtext {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 8%;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- Fade-In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 850px) {
    .hero-text h1 { font-size: 3.5rem; }
    .about-content { flex-direction: column; }
    .navbar { background-color: var(--bg-color); padding: 20px 8%; }
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        text-align: center;
        transition: 0.4s;
        border-bottom: 1px solid #eaeaea;
    }
    
    .nav-links.active { left: 0; }
    .nav-links li { margin: 25px 0; }
    footer { flex-direction: column; gap: 20px; }
}

/* --- Lightbox (Click to Zoom) --- */
.photo-item img {
    cursor: pointer; /* Makes the mouse a clicking finger */
}

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); /* Dark background */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh; /* Limits height to 90% of screen */
    border: 3px solid var(--bg-color); /* Elegant white border */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.95)}
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* --- Estilos Especiales para la Página de Paquetes --- */
.tabla-precios {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #eaeaea;
}

.fila-precio {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;
    border-bottom: 1px solid #eaeaea;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.fila-precio:hover {
    background-color: #f5f3f0;
}

.fila-precio span:first-child {
    font-weight: 600;
}

.fila-precio-corta {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
}

/* Cuadrícula de Tarjetas de Paquetes */
.cuadrícula-paquetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tarjeta-paquete {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-paquete:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Resalta el paquete del medio */
.tarjeta-paquete.destacado {
    border: 2px solid var(--accent-color);
    background-color: #fcfbf9;
}

.tarjeta-paquete h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.tarjeta-paquete .precio {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.tarjeta-paquete ul {
    list-style: none;
    padding: 0;
    text-align: left;
    color: var(--text-muted);
    line-height: 1.8;
}

.tarjeta-paquete ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

/* Añade un guión elegante antes de cada beneficio del paquete */
.tarjeta-paquete ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- Efecto Glow para Botones --- */
.btn {
    transition: all 0.3s ease; /* Transición suave */
}

/* Glow oscuro para los botones normales (gris oscuro) */
.btn:hover {
    box-shadow: 0px 0px 20px rgba(44, 42, 41, 0.4); 
}

/* Glow dorado para el botón principal del Hero (cuando se vuelve acento) */
.hero .btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important; 
    box-shadow: 0px 0px 20px rgba(191, 165, 138, 0.6) !important; 
}