/* ==========================================================================
   MANYA CODE - FULL FACE V1 (ESTRUCTURA ROBUSTA + IDENTIDAD DE MARCA)
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES --- */
:root {
    --color-gold: #C69C6D;
    --color-gold-light: #D6B299;
    --color-cream: #FCF6F3;
    --color-beige: #F1E0CC;
    --color-blue-pastel: #A3B3C6;
    --color-dark: #2D2D2D;
    --color-text-muted: #606060;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Rethink Sans', sans-serif;

    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-img: 0 20px 40px rgba(0,0,0,0.15);
}

/* --- 2. RESET Y BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

a { text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- 3. UTILIDADES GENERALES --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.bg-white { background-color: var(--color-white); }
.bg-cream { background-color: var(--color-cream); }
.bg-dark { background-color: var(--color-dark); }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark); }
.text-muted { color: var(--color-text-muted); }
.text-light-muted { color: rgba(255,255,255,0.7); }

.tag-title { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: block; }
.main-heading { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; color: var(--color-dark); font-weight: 600; }
.italic-title { font-style: italic; font-weight: 400; }
.text-body { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.8; }
.text-small { font-size: 0.95rem; }

.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; } .mt-50 { margin-top: 50px; }
.mb-10 { margin-bottom: 10px; } .mb-15 { margin-bottom: 15px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; } .mb-40 { margin-bottom: 40px; } .mb-50 { margin-bottom: 50px; }
.p-20 { padding: 20px; } .p-30 { padding: 30px; }
.pl-40-desktop { padding-left: 40px; } .pr-40-desktop { padding-right: 40px; }
.ml-10 { margin-left: 10px; } .mr-10 { margin-right: 10px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }

.img-fluid { width: 100%; object-fit: cover; }
.border-radius-lg { border-radius: 6px; }
.shadow-img { box-shadow: var(--shadow-img); }
.shadow-light { box-shadow: var(--shadow-light); }
.overflow-hidden { overflow: hidden; }

/* --- 4. GRID SYSTEM --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.align-center { align-items: center; }
.align-start { align-items: start; }

/* --- 5. BOTONES Y ENLACES --- */
.btn-primary {
    display: inline-block; padding: 15px 35px; background-color: var(--color-gold);
    color: var(--color-white); font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; border-radius: 2px;
    border: 1px solid var(--color-gold); cursor: pointer;
}
.btn-primary:hover { background-color: var(--color-dark); border-color: var(--color-dark); color: var(--color-white); }
.btn-outline {
    display: inline-block; padding: 15px 35px; background-color: transparent;
    color: var(--color-white); font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; border-radius: 2px;
    border: 1px solid var(--color-white);
}
.btn-outline:hover { background-color: var(--color-white); color: var(--color-dark); }
.btn-text-gold { color: var(--color-gold); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; display: inline-block; margin-top: 15px; border-bottom: 1px solid transparent; padding-bottom: 3px; }
.btn-text-gold:hover { border-bottom-color: var(--color-gold); color: var(--color-dark); }
.btn-full-width { width: 100%; }
.link-animated { color: var(--color-dark); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; border-bottom: 2px solid var(--color-gold); padding-bottom: 5px; display: inline-flex; align-items: center; }
.link-animated:hover { color: var(--color-gold); }

/* --- 6. HEADER INTELIGENTE --- */
.header-v1 { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition-fast); background: rgba(45, 45, 45, 0.15); backdrop-filter: blur(5px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-v1.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 15px 0; border-bottom: 1px solid transparent; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 45px; transition: var(--transition-fast); filter: brightness(0) invert(1); }
.header-v1.scrolled .logo-img { filter: none; }
.nav-menu ul { display: flex; align-items: center; gap: 35px; }
.nav-menu a { color: var(--color-white); font-weight: 600; font-size: 0.95rem; }
.header-v1.scrolled .nav-menu a { color: var(--color-dark); }
.header-v1.scrolled .nav-menu a.btn-primary { color: var(--color-white); }
.active-link { color: var(--color-gold) !important; font-weight: 700; }

/* --- 7. HERO CARRUSEL --- */
.hero-carousel { position: relative; height: 100vh; width: 100%; overflow: hidden; background-color: var(--color-dark); }
.carousel-inner { width: 100%; height: 100%; position: relative; }
.carousel-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.carousel-item.active { opacity: 1; z-index: 2; }
/* Overlay base para desktop */
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%); z-index: 3; }
.hero-text-container { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide-subtitle { color: var(--color-gold); letter-spacing: 4px; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; margin-bottom: 15px; display: block; }
.slide-title { font-family: var(--font-heading); font-size: 5.5rem; color: var(--color-white); line-height: 1.1; margin-bottom: 20px; font-weight: 600;}
.slide-desc { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 550px; margin-bottom: 35px; line-height: 1.6; }
.text-right .slide-desc { margin-left: auto; }
.carousel-controls { position: absolute; bottom: 40px; right: 5%; z-index: 10; display: flex; gap: 15px; }
.carousel-controls button { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: var(--color-white); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: var(--transition-fast); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.carousel-controls button:hover { background: var(--color-gold); border-color: var(--color-gold); }

/* --- 8. HERO INTERNO --- */
.page-hero { padding: 180px 0 100px; background-size: cover; background-position: center; position: relative; }
.page-title { font-family: var(--font-heading); font-size: 4.5rem; color: var(--color-white); line-height: 1.1; font-weight: 600; }

/* --- 9. TARJETAS --- */
.service-card { background: var(--color-white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-light); transition: transform 0.4s ease; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--color-gold); }
.card-img-top { position: relative; height: 260px; }
.card-img-top img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { position: absolute; bottom: -25px; right: 30px; width: 55px; height: 55px; background: var(--color-white); color: var(--color-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card-body { padding: 40px 30px 30px; }
.card-title { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 15px; color: var(--color-dark); font-weight: 600; }
.card-text { color: var(--color-text-muted); font-size: 1rem; line-height: 1.6; }

/* --- 10. SLIDER BA --- */
.ba-slider { position: relative; width: 100%; overflow: hidden; background: var(--color-dark); }
.ratio-4-3 { aspect-ratio: 4/3; }
.before-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.after-image-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; clip-path: inset(0 50% 0 0); }
.after-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-handle-gold { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; background-color: var(--color-dark); border: 2px solid var(--color-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-gold); cursor: ew-resize; z-index: 10; box-shadow: 0 0 15px rgba(0,0,0,0.4); }
.slider-handle-gold::before { content: ''; position: absolute; top: -1000px; bottom: -1000px; left: 50%; width: 2px; background-color: var(--color-gold); transform: translateX(-50%); z-index: -1; }

/* --- 11. INFO --- */
.info-list-container { padding: 0; margin: 0; }
.info-item { display: flex; align-items: flex-start; gap: 15px; font-size: 1.05rem; color: var(--color-dark); }
.info-item i { margin-top: 5px; font-size: 1.2rem; }
.icon-circle { width: 45px; height: 45px; background-color: var(--color-cream); color: var(--color-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.credentials-box { background-color: var(--color-white); padding: 25px; border-radius: 6px; border-left: 3px solid var(--color-gold); box-shadow: var(--shadow-light); }
.faq-card { transition: var(--transition-fast); }
.faq-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-light); }

/* --- 12. FOOTER --- */
.main-footer { background-color: var(--color-dark); padding: 80px 0 20px; border-top: 4px solid var(--color-gold); }
.footer-logo { height: 50px; }
.footer-title { color: var(--color-white); font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 25px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links ul li a:hover { color: var(--color-gold); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 20px; font-size: 0.85rem; }

/* --- 13. ANIMACIONES --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: var(--transition-slow); }
.reveal-left { opacity: 0; transform: translateX(40px); transition: var(--transition-slow); }
.reveal-right { opacity: 0; transform: translateX(-40px); transition: var(--transition-slow); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0,0); }

/* --- 14. WHATSAPP --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 35px; box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    transition: all 0.5s ease; animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.05); color: #FFF; animation: none; }
.hidden-on-load { opacity: 0; pointer-events: none; transform: translateY(20px); }
.whatsapp-float.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@keyframes pulse-whatsapp {
    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); }
}

/* ==========================================================================
   15. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
.menu-toggle { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--color-white); }
.header-v1.scrolled .bar { background-color: var(--color-dark); }

@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 40px; }
    .pl-40-desktop, .pr-40-desktop { padding: 0; }
    .text-right { text-align: left; }
    .text-right .slide-desc { margin-left: 0; }

    .main-heading { font-size: 2.8rem; }
    .slide-title { font-size: 4rem; }
    .page-title { font-size: 3.5rem; }

    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 0; flex-direction: column;
        background-color: var(--color-white); width: 100%; height: 100vh;
        text-align: center; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .nav-menu a { color: var(--color-dark) !important; font-size: 1.2rem; }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--color-dark); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--color-dark); }
}

@media (max-width: 768px) {
    /* Oscurecemos mucho más el fondo en móvil para garantizar lectura perfecta sobre CUALQUIER foto */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.85) 100%);
    }

    .section-padding { padding: 60px 0; }
    .page-hero { padding: 130px 0 60px; }
    .main-footer { padding: 50px 0 20px; }

    .main-heading { font-size: 2.2rem; }
    .slide-title { font-size: 2.8rem; }
    .page-title { font-size: 2.5rem; }
    .slide-desc { font-size: 1rem; margin-bottom: 25px; }

    .hero-btns .btn-primary { width: 100%; text-align: center; }

    .card-body { padding: 30px 20px 20px; }
    .card-title { font-size: 1.4rem; }

    .credentials-box .info-item { margin-bottom: 25px; }
    .credentials-box .info-item:not(:last-child) { border-bottom: 1px solid rgba(198, 156, 109, 0.1); padding-bottom: 15px; }

    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 28px; }
}