/* --- FUENTES Y COLORES --- */
:root {
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    --color-background: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-text: #c5c5c5;
    --color-primary: #b9a06b; /* Un dorado viejo */
    --color-border: #333;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    font-size: 1.1em; /* Increased base font size */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5em;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.main-header {
    /* background-color: var(--color-surface); */ /* Eliminado o hecho transparente */
    /* border-bottom: 1px solid var(--color-border); */ /* Eliminado */
    padding: 1em 0;
    position: sticky; /* Cambiado de absolute a sticky */
    top: 0;
    left: 0;
    width: 100%; /* Asegura que ocupe todo el ancho */
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo semitransparente más opaco */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--color-primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(185, 160, 107, 0.5);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2em;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1em;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
}


/* --- ESTILO GENERAL DE SECCIONES --- */
.welcome-section {
    text-align: center;
    padding: 4em 0;
}

section {
    padding: 2em 0;
    border-bottom: 1px solid var(--color-border);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1.5em;
}

/* --- TARJETAS (DONES, RITUALES) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.card, .ritual-card {
    background: var(--color-surface);
    padding: 2em;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5em;
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.5em;
    margin-top: 0;
}

.ritual-card {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--color-primary);
    text-align: left;
    padding: 1.5em;
}
.ritual-card h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.card-link {
    text-decoration: none; /* Quita el subrayado del enlace */
    color: inherit; /* Hereda el color del texto para que no sea azul */
}

/* --- Image Gallery for Service Pages --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto; /* Esto previene la deformación */
    display: block;
    margin: 2em auto;
    border-radius: 8px;
}

/* --- Testimonials Section --- */
.testimonial-card {
    background: var(--color-surface);
    padding: 2em;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-primary); /* Accent line */
    border-radius: 8px;
    font-style: italic;
}

.testimonial-card cite {
    display: block;
    margin-top: 1em;
    font-style: normal;
    font-weight: bold;
    color: var(--color-primary);
}

/* --- Final Contact Section --- */
#contacto-final {
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-top: 2em;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.contact-button:hover {
    transform: scale(1.05);
}

.contact-button img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.contact-button.whatsapp {
    background-color: #25D366;
    color: white;
}

.contact-button.messenger {
    background-color: #006AFF;
    color: white;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3em 0;
    margin-top: 2em;
    font-size: 0.9em;
    color: var(--color-text);
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none; /* Oculto por defecto */
    cursor: pointer;
    padding: 10px;
    z-index: 101; /* Encima del resto del header */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

/* --- ESTILOS PARA MÓVILES --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1em;
    }

    .hamburger-menu {
        display: block; /* Visible en móviles */
    }

    .main-nav {
        position: absolute;
        top: 100%; /* Justo debajo del header */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        max-height: 0; /* Oculto por defecto */
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .main-nav.nav-open {
        max-height: 500px; /* Altura máxima para mostrar el menú */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .main-nav a {
        padding: 1.2em;
        display: block;
        border-bottom: 1px solid var(--color-border);
        font-size: 1em;
    }
    
    .main-nav li:last-child a {
        border-bottom: none;
    }
    
    .main-nav a:hover {
        background-color: var(--color-surface);
    }

    h2 {
        font-size: 2em;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    .whatsapp-float {
        left: 15px;
        bottom: 15px;
    }
    .messenger-float {
        right: 15px;
        bottom: 15px;
    }
}

/* --- Formulario de Contacto en la Página de Inicio --- */
.contact-form-section {
    padding: 3em 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.main-contact-form {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.main-contact-form .form-group {
    margin-bottom: 1.5em;
}

.main-contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-family: var(--font-body);
    color: var(--color-text);
    font-weight: bold;
}

.main-contact-form input[type="text"],
.main-contact-form input[type="email"],
.main-contact-form textarea {
    width: 100%;
    padding: 1em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #2a2a2a; /* Slightly lighter than background for contrast */
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't expand the element */
}

.main-contact-form input[type="text"]:focus,
.main-contact-form input[type="email"]:focus,
.main-contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 8px rgba(185, 160, 107, 0.5);
}

.main-contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.main-contact-form .submit-button {
    display: block;
    width: 100%;
    padding: 1em;
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-contact-form .submit-button:hover {
    background-color: #d4b87e; /* Lighter primary on hover */
    box-shadow: 0 0 15px rgba(185, 160, 107, 0.7);
}

/* Responsive adjustments for the form */
@media (max-width: 600px) {
    .main-contact-form {
        padding: 1.5em;
        margin: 1em auto;
    }
}

/* --- Video Responsive --- */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    margin: 2em auto;
    max-width: 800px; /* Optional: limit max width */
}

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

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Text color for content over image */
    background-image: url('martha_m.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Creates a nice parallax-like effect */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Black overlay with 30% opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Must be higher than the overlay */
    padding: 20px;
    border-radius: 10px;
}

.hero-content h1 {
    font-family: var(--font-heading); /* Use existing variable */
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--color-primary); /* Use primary color for headline */
}

.hero-tagline {
    font-size: 1.5em; /* Explicitly size SEO text, made larger */
    margin-bottom: 1em; /* Add space below it */
    color: white; /* Ensure visibility against overlay */
    font-weight: bold; /* Make it bold for more impact */
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary); /* Use primary color for button */
    color: var(--color-background); /* Text color for button */
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(185, 160, 107, 0.7); /* Glow effect */
}

.cta-button:hover {
    background-color: #d4b87e; /* Lighter primary on hover */
    box-shadow: 0 0 20px rgba(185, 160, 107, 1);
}

/* --- Floating Contact Icons --- */
.floating-icon {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s ease-in-out;
}

.floating-icon:hover {
    transform: scale(1.1);
}

.floating-icon img {
    width: 36px;
    height: 36px;
}

.whatsapp-float {
    background-color: #25D366;
    left: 30px;
}

.messenger-float {
    background-color: #006AFF;
    right: 30px;
}