/* ================= VARIABLES GLOBALES (PALETA PREMIUM) ================= */
:root {
    --clr-primary: #C1B6A3;        
    --clr-secondary: #EFE7DA;      
    --clr-accent: #B3907A;         
    --clr-neutral-light: #F5F5EB;  
    --clr-neutral-dark: #402E24;   
    --clr-text-main: #59554D;      

    --font-title: 'Playfair Display', serif; 
    --font-text: 'Poppins', sans-serif;
    
    --radius-soft: 16px; 
    --shadow-soft: 0 8px 32px rgba(64, 46, 36, 0.08);
    --shadow-hover: 0 12px 40px rgba(179, 144, 122, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-text); color: var(--clr-text-main); background: var(--clr-neutral-light); scroll-behavior: smooth;}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.hidden { display: none !important; }
.section-title { font-family: var(--font-title); font-size: 2.5rem; color: var(--clr-accent); margin-bottom: 20px; text-align: center; }

/* HEADER Y NAVEGACIÓN */
.header { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; z-index: 1000; transition: all 0.4s ease; background: transparent; }
.header.scrolled { background: rgba(245, 245, 235, 0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }
.hamburger { font-size: 1.8rem; cursor: pointer; background: none; border: none; color: var(--clr-neutral-dark); }
.side-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: rgba(245, 245, 235, 0.98); backdrop-filter: blur(10px); z-index: 2000; transition: left 0.3s ease; padding: 60px 20px; box-shadow: 2px 0 15px rgba(0,0,0,0.1); }
.side-menu.open { left: 0; }
.side-menu ul { list-style: none; }
.side-menu a { display: block; font-size: 1.2rem; margin-bottom: 20px; text-decoration: none; color: var(--clr-neutral-dark); font-weight: 500; transition: color 0.3s; }
.side-menu a:hover { color: var(--clr-accent); }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--clr-text-main); }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(64, 46, 36, 0.5); z-index: 1500; display: none; opacity: 0; transition: opacity 0.3s; }
.menu-overlay.active { display: block; opacity: 1; }

.logo-header { height: 45px; width: auto; transition: transform 0.3s ease; display: block; }
.logo-header:hover { transform: scale(1.05); }

/* BOTONES GLOBALES */
.btn-primary { background: var(--clr-accent); color: white; padding: 12px 30px; border: none; border-radius: 30px; font-family: var(--font-text); cursor: pointer; transition: 0.3s; width: 100%; font-size: 1rem; font-weight: 500; letter-spacing: 0.5px;}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: #a27f6a; }
.btn-outline { background: transparent; border: 2px solid var(--clr-accent); color: var(--clr-accent); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: 500; transition: 0.3s; }
.btn-outline:hover { background: var(--clr-accent); color: white; }

/* HERO Y CARRUSEL */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, var(--clr-secondary) 0%, var(--clr-neutral-light) 100%); padding-top: 80px;}
.hero-small-logo { width: 100%; max-width: 250px; margin-bottom: 30px; filter: drop-shadow(0px 4px 8px rgba(64, 46, 36, 0.15)); }

.carousel-container { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-soft); box-shadow: var(--shadow-soft); background: white; }
.carousel-track { display: flex; transition: transform 0.6s ease-in-out; width: 100%; }
.carousel-slide { min-width: 100%; display: flex; flex-direction: row; }
.carousel-slide img { width: 50%; object-fit: cover; aspect-ratio: 4/3; }
.carousel-text { width: 50%; padding: 40px; display: flex; flex-direction: column; justify-content: center; text-align: left;}
.carousel-text h1 { font-family: var(--font-title); color: var(--clr-neutral-dark); font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
.carousel-text p { font-size: 1rem; color: var(--clr-text-main); line-height: 1.6; }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; font-size: 1.5rem; cursor: pointer; padding: 12px 18px; border-radius: 50%; z-index: 10; color: var(--clr-neutral-dark); transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.carousel-arrow:hover { background: white; transform: translateY(-50%) scale(1.1);}
.left-arrow { left: 15px; }
.right-arrow { right: 15px; }

/* BUSCADOR Y LISTAS */
.search-container { text-align: center; margin-bottom: 40px; }
#search-input { width: 100%; max-width: 600px; padding: 15px 25px; border-radius: 30px; border: 2px solid var(--clr-primary); font-family: var(--font-text); font-size: 1rem; outline: none; transition: 0.3s; box-shadow: var(--shadow-soft); }
#search-input:focus { border-color: var(--clr-accent); box-shadow: var(--shadow-hover); }

.grid-destacados { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.category-main-card { background: #fff; border-radius: var(--radius-soft); overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.3s; text-align: center; }
.category-main-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-main-card img { width: 100%; height: 200px; object-fit: cover; }
.category-main-card .content { padding: 20px; }

.grid-servicios { display: grid; gap: 20px; }
.service-card { background: white; border-radius: var(--radius-soft); padding: 20px 30px; display: flex; justify-content: space-between; box-shadow: var(--shadow-soft); border-left: 4px solid var(--clr-accent); }

/* PRECIOS Y OFERTAS */
.price-container { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-normal { font-size: 1.3rem; color: var(--clr-accent); font-weight: bold; }
.price-tachado { font-size: 1rem; color: #999; text-decoration: line-through; }
.price-oferta { font-size: 1.4rem; color: #e74c3c; font-weight: 800; background: #fadbd8; padding: 2px 8px; border-radius: 6px; }

/* PROFESIONALES Y EXTRAS */
.profesionales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.prof-card { text-align: center; background: white; padding: 30px 20px; border-radius: var(--radius-soft); box-shadow: var(--shadow-soft); transition: 0.3s; }
.prof-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.prof-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--clr-primary); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(64, 46, 36, 0.7); justify-content: center; align-items: center; }
.modal-content { background: var(--clr-neutral-light); padding: 40px; border-radius: var(--radius-soft); width: 90%; max-width: 400px; position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--clr-neutral-dark); }
.cart-item { display: flex; justify-content: space-between; padding: 10px; background: white; margin-bottom: 10px; border-radius: 8px; border-left: 3px solid var(--clr-primary); }

.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; animation: pulse 2s infinite;}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.footer { background-color: var(--clr-neutral-dark); color: var(--clr-secondary); padding: 60px 0 20px; position: relative; }
.footer-top-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent)); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo-header { height: 35px; }
    .section-title { font-size: 2rem; }
    .carousel-slide { flex-direction: column; }
    .carousel-slide img { width: 100%; height: 250px; }
    .carousel-text { width: 100%; padding: 30px 20px; text-align: center; }
    .carousel-text h1 { font-size: 1.6rem; }
}