/* ============================================
   SERENITY HARMONY - GLOBAL STYLES
   ============================================ */

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

/* Color Palette */
:root {
    --cream: #F5F1E8;
    --green-light: #D4E8D4;
    --green-dark: #2D5A3D;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --accent: #8B7355;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background-color: var(--white);
    border-bottom: 1px solid #E0D5C7;
    padding: 1rem 0;
    z-index: 100;
}

.header.sticky-header {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-light);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--green-dark);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E0D5C7;
}

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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-left: 50px;
}

.hero-panel {
    background-color: rgba(245, 241, 232, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease;
}

.hero-title {
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.hero-subtitle {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-text {
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--green-dark);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #1F3E2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.3);
}

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

.servicios {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-cream {
    background-color: var(--cream);
}

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

.card-green-dark {
    background-color: var(--green-dark);
    color: var(--text-light);
}

.card-green-dark h3,
.card-green-dark .service-duration,
.card-green-dark .service-price {
    color: var(--text-light);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
}

.service-duration,
.service-price {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-green-dark .service-duration,
.card-green-dark .service-price {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.service-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.accordion-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background-color: #6B5344;
    transform: scale(1.05);
}

.accordion-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.accordion-content.active {
    display: block;
}

.accordion-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.image-divider {
    margin: 3rem 0;
    text-align: center;
}

.divider-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-height: 300px;
    object-fit: cover;
}

/* ============================================
   BENEFICIOS SECTION
   ============================================ */

.beneficios {
    padding: 4rem 0;
    background-color: var(--green-dark);
    color: var(--text-light);
}

.beneficios .section-title {
    color: var(--text-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-block {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--cream);
    transition: all 0.3s ease;
}

.benefit-block:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.benefit-block h3 {
    color: var(--cream);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-block p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   PRECIOS SECTION
   ============================================ */

.precios {
    padding: 4rem 0;
    background-color: var(--cream);
}

.price-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table thead {
    background-color: var(--green-dark);
    color: var(--text-light);
}

.price-table th,
.price-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #E0D5C7;
}

.price-table tbody tr:hover {
    background-color: var(--green-light);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   TESTIMONIOS SECTION
   ============================================ */

.testimonios {
    padding: 4rem 0;
    background-color: var(--white);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--green-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--green-dark);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.testimonial-author {
    font-weight: 600;
    color: var(--green-dark);
    text-align: right;
}

/* ============================================
   FULL WIDTH IMAGE
   ============================================ */

.full-width-image {
    width: 100%;
    margin: 3rem 0;
}

.full-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.sobre-mi {
    padding: 4rem 0;
    background-color: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--green-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
    max-height: 400px;
}

/* ============================================
   HORARIO / PIDE CITA SECTION
   ============================================ */

.horario {
    padding: 4rem 0;
    background-color: var(--white);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.schedule-item {
    background-color: var(--green-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.schedule-item h3 {
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.schedule-item p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0.5rem 0;
}

.appointment-form-wrapper {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.appointment-form-wrapper h3 {
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #E0D5C7;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.submit-btn {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #1F3E2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.3);
}

.form-message {
    text-align: center;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #D4E8D4;
    color: #2D5A3D;
}

.form-message.error {
    display: block;
    background-color: #F8D7DA;
    color: #721C24;
}

/* ============================================
   FOOTER / CONTACTO SECTION
   ============================================ */

.footer {
    background-color: var(--green-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--cream);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--cream);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top {
    background-color: var(--cream);
    color: var(--green-dark);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Hero */
    .hero {
        height: 60vh;
    }

    .hero-content {
        margin-left: 20px;
    }

    .hero-panel {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        width: 100%;
    }

    /* Table */
    .price-table th,
    .price-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-panel {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .benefits-grid,
    .testimonials-container,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .service-header {
        flex-direction: column;
    }

    .service-duration,
    .service-price {
        align-self: flex-start;
    }

    .appointment-form-wrapper {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section a {
        display: inline-block;
        margin: 0 0.5rem;
    }
}
