/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */

:root {
    /* Paleta de colores - Bienestar / Spa */
    --color-primary: #8B9A7A; /* Verde suave */
    --color-primary-dark: #6B7A5A;
    --color-primary-light: #A8B89A;
    --color-accent: #D4C5B9; /* Beige */
    --color-accent-light: #E8DDD5; /* Crema */
    --color-nude: #F5F0EB; /* Nude muy claro */
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-light: #FAF8F5;
    
    /* Tipografías */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET Y BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset para header sticky */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   HEADER STICKY
   ============================================ */

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-sticky.header-scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-sticky .logo a {
    text-decoration: none;
    color: var(--color-primary-dark);
    transition: color var(--transition-fast);
}

.header-sticky .logo a:hover {
    color: var(--color-primary);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-nude) 0%, var(--color-accent-light) 100%);
    background-image: url('/assets/hero-placeholder.jpg?v=2.0.0');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 70px; /* Offset para header sticky */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 154, 122, 0.4) 0%, rgba(212, 197, 185, 0.5) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
    max-width: 800px;
}

.hero-content * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Botones del hero con mejor visibilidad */
.hero-buttons .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-primary);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   TRUST STRIP
   ============================================ */

.trust-strip {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-accent-light);
}

.trust-item {
    padding: 1rem;
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ============================================
   SECCIONES
   ============================================ */

.section-padding {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--color-light);
}

/* ============================================
   SOBRE MÍ
   ============================================ */

.about-content {
    padding: 1rem 0;
}

.about-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.about-cta {
    margin-top: 2rem;
}

/* ============================================
   SERVICIOS
   ============================================ */

.service-category {
    margin-bottom: 3rem;
}

.service-category-title {
    font-size: 1.75rem;
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-accent-light);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-card-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.service-card-desc {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
}

.service-bullet {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.service-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card-meta {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.service-card-buttons .btn-primary,
.service-card-buttons .btn-secondary {
    width: 100%;
}

/* ============================================
   GALERÍA
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* ============================================
   RESEÑAS
   ============================================ */

.reviews-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    flex: 1;
}

@media (min-width: 768px) {
    .reviews-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .reviews-rating {
        flex: 0 0 auto;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .reviews-grid {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-accent-light);
}

.review-stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.reviews-rating {
    margin-bottom: 2.5rem;
    text-align: left;
}

.reviews-rating-value {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reviews-rating-star {
    font-size: 1.5rem;
    color: #FFB800;
}

.reviews-rating-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ============================================
   UBICACIÓN
   ============================================ */

.location-info {
    padding: 1rem 0;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   CONTACTO / FORMULARIO
   ============================================ */

.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-accent-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-accent-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 154, 122, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .form-buttons {
        flex-direction: row;
    }
}

.form-buttons .btn-primary,
.form-buttons .btn-secondary {
    flex: 1;
}

/* ============================================
   FOOTER NORMAL
   ============================================ */

.footer-normal {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-credits a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* ============================================
   FOOTER STICKY (MOBILE)
   ============================================ */

.footer-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-accent-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0.5rem 0;
}

@media (max-width: 767px) {
    .footer-sticky {
        display: block;
    }
}

.footer-sticky-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.footer-sticky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.75rem;
    transition: color var(--transition-fast);
    padding: 0.5rem;
    flex: 1;
}

.footer-sticky-item:hover,
.footer-sticky-item:active {
    color: var(--color-primary);
}

.footer-sticky-item.footer-sticky-wa {
    color: var(--color-primary);
    font-weight: 600;
}

.footer-sticky-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */

.floating-wa-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@media (min-width: 768px) {
    .floating-wa-btn {
        bottom: 30px;
    }
}

/* ============================================
   MENÚ MOBILE
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: block;
    padding: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--color-primary-light);
}

/* ============================================
   UTILIDADES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-section {
        margin-top: 60px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Ajustar padding bottom para footer sticky */
    body {
        padding-bottom: 70px;
    }
}

/* ============================================
   ANIMACIONES SUAVES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.review-card,
.gallery-item {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible para accesibilidad */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}
