/* CSS Variables */
:root {
    --primary-color: #873639; /* Rojo Granate (Elegante) */
    --primary-hover: #692A2C;
    --secondary-color: #D96A41; /* Naranja Fuego (Terracota) */
    --accent-color: #C29B70; /* Marrón Claro Madera */
    
    --bg-color: #F0E3D6; /* Beige con mayor contraste */
    --bg-light: #FFFFFF; /* Blanco puro */
    
    --text-main: #3A322C; /* Marrón muy oscuro */
    --text-muted: #73675E;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin-bottom: 1rem;
}

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

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.mt-5 { margin-top: 3rem; }
.bg-light { background-color: var(--bg-light); }
.bg-accent { background-color: var(--primary-color); }

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 7rem 0 4rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    color: var(--text-main);
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap-reverse;
    width: 100%;
}
.hero-text {
    flex: 1 1 450px;
    text-align: left;
}
.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero-text .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.hero-image-wrapper {
    flex: 1 1 400px;
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Intro Background */
.intro-bg {
    position: relative;
    background: url('images/foto 5.jpg') center/cover fixed no-repeat;
    color: #fff;
    padding: 7rem 0;
}
.intro-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.intro-bg .container {
    position: relative;
    z-index: 2;
}
.intro-bg .section-title {
    color: #fff;
    border-bottom-color: var(--accent-color);
}
.intro-bg .section-desc {
    color: #f4f4f4;
    font-size: 1rem;
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-location:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Services Section */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Service Accordions */
.service-details {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #EBE4DD;
}
.category-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--bg-color);
    color: var(--primary-color);
    list-style: none;
    border-radius: var(--radius-lg);
    transition: background 0.3s;
}
.category-summary::-webkit-details-marker {
    display: none;
}
.category-summary:hover {
    background: #F2EBE3;
}
details[open] .category-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid #EBE4DD;
}
.category-summary .toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
details[open] .toggle-icon {
    transform: rotate(180deg);
}
.service-content {
    padding: 2rem;
}

.category-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid #EBE4DD;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: var(--bg-light);
}

.card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.highlight-card {
    background-color: rgba(200, 121, 101, 0.1);
    border: 1px solid rgba(200, 121, 101, 0.3);
}
.highlight-card:hover {
    background-color: rgba(200, 121, 101, 0.15);
}

/* Testimonials */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    align-items: start;
}

.testimonial {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #EBE4DD;
    position: relative;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.testimonial .stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.review-author {
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

/* Social & Location */
.social-links {
    margin-top: 30px;
}

.social-links p {
    font-weight: 500;
    color: var(--text-muted);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.social-links a:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--primary-hover);
    color: rgba(255,255,255,0.9);
    padding: 40px 0;
}

footer p {
    margin-bottom: 5px;
}

footer .copyright {
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.6;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.tally-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tally-float:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero { padding: 120px 0 60px; }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-text { 
        text-align: center; 
        padding: 0 15px;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }
    .hero-image img { max-height: 350px; }
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; }
    .section-title { font-size: 2rem; padding: 0 15px; }
    .section-desc { padding: 0 20px; }
    
    .category-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .service-content {
        flex-direction: column !important;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .tally-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
        font-size: 24px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
