/* /assets/css/style.css */

/* --- FUENTES Y PALETA DE COLORES (Brand Farmacia Balcarce) --- */
:root {
    --primary-color: #2ECC71; /* Verde salud */
    --primary-700: #27ae60;
    --secondary-color: #1ABC9C; /* Verde agua */
    --text-color: #1f2d2a; /* Texto principal oscuro */
    --muted-text: #5b6b68;
    --surface: #ffffff; /* Superficie clara */
    --surface-alt: #f6fbf9; /* Fondo suave con tinte verde */
    --border: #e6f0ec; /* Bordes sutiles */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    padding-top: 75px; /* navbar fija (altura real) */
    background-color: var(--surface);
    color: var(--text-color);
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 500; /* menos pesado para mayúsculas */
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

p, li, a, label, input, textarea, small {
    font-family: var(--font-body);
    font-weight: 400; /* Montserrat 400 para párrafos */
}

.section-title {
    font-weight: 400; /* evitar negrita en títulos de sección */
    margin-bottom: 0.5rem;
}

a { color: var(--primary-700); }
a:hover { color: var(--secondary-color); }

/* --- HERO CAROUSEL --- */
.hero-section { position: relative; }
.hero-section .carousel-item {
    position: relative;
    height: 90vh;
    background-size: cover;
    background-position: center;
}
.hero-section .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
}
.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.0);
    padding: 0 1.25rem;
    width: 100%;
    max-width: 1000px;
    height: max-content;
    z-index: 2;
}
.hero-section .carousel-caption h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); letter-spacing: 0.5px; }
.hero-section .carousel-caption p { max-width: 760px; margin: 0.75rem auto 1.25rem; color: rgba(255,255,255,0.95); text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
@media (max-width: 767.98px) { .hero-section .carousel-caption { width: 100%; padding-left: 3rem; padding-right: 3rem; } }

/* Mejoras de controles e indicadores del carrusel en tema claro */
.hero-section .carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,0.8); }
.hero-section .carousel-indicators .active { background-color: var(--primary-color); }
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }

/* --- Variantes de fondo por sección con degradés sutiles --- */
#beneficios { background: linear-gradient(180deg, #ffffff 0%, #dbdbdb 100%); }
#servicios { background: linear-gradient(180deg, #ffffff 0%, #a0d6bd 100%); }
#visitanos { background: linear-gradient(180deg, #ffffff 0%, #e5edf5 100%); }
#nosotros { background: linear-gradient(180deg, #ffffff 0%, #a0d6bd 100%); }
#faq { background: linear-gradient(180deg, var(--surface) 0%, #a0d6bd 100%); }
#contacto { background: linear-gradient(180deg, var(--surface-alt) 0%, #ffffff 100%); }

/* --- SECTION HEADER --- */
.section-header .title-underline {
    width: 80px; height: 3px; margin: 0.75rem auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 2px;
}

/* --- SERVICIOS --- */
.services-modern { background: var(--surface-alt); }
.services-modern .service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-color);
}
.services-modern .service-card:hover { transform: translateY(-6px); box-shadow: 0 8px 28px rgba(31,45,42,0.08) !important; }
.services-modern .icon-circle {
    width: 70px; min-width: 70px; height: 70px; background-color: var(--primary-color);
    color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* --- CONTACTO --- */
.contact-modern { background: var(--surface); }
.contact-modern .contact-card {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(31,45,42,0.06);
}

/* --- OFFSET DE ANCLA --- */
:target::before { content: ""; display: block; height: 63px; margin-top: -63px; visibility: hidden; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float { position: fixed; width: 52px; height: 52px; bottom: 20px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 26px; box-shadow: 0 8px 20px rgba(31,45,42,0.15); z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.08); color: #FFF; }

/* --- reCAPTCHA --- */
.grecaptcha-badge { display: none !important; }

/* --- NAVBAR LOGO & OVERRIDES --- */
.navbar .brand-logo { height: 48px; width: auto; }
.navbar.bg-white { background-color: #ffffff !important; }
.navbar-light .navbar-nav .nav-link { color: var(--text-color); padding: 0.5rem 0.75rem; border-radius: 0.5rem; transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease; }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { color: var(--primary-700); background-color: var(--surface-alt); }
.navbar-light .navbar-nav .nav-link.active { color: var(--surface); background-color: var(--primary-color); padding: 0.5rem 1rem; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: #ffffff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-700); border-color: var(--primary-700); color: #ffffff; }

/* --- SECCIÓN NOSOTROS --- */
.bg-light { background-color: var(--surface-alt) !important; color: var(--text-color) !important; }
.about-modern { background: var(--surface); }
.about-modern .about-header .kicker { display: inline-block; padding: 0.25rem 0.6rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.6px; }
.about-modern .about-header .title-underline { width: 80px; height: 3px; margin: 0.75rem auto 0; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 2px; }
.about-modern .about-card { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px rgba(31,45,42,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.about-modern .about-card:hover { transform: translateY(-4px); border-color: rgba(46,204,113,0.4); box-shadow: 0 18px 40px rgba(31,45,42,0.12); }
.about-modern .icon-badge { flex: 0 0 56px; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary-color), var(--primary-700)); color: #fff; font-size: 1.5rem; box-shadow: inset 0 0 10px rgba(255,255,255,0.25), 0 8px 16px rgba(46,204,113,0.15); }
.about-modern h3.h4 { letter-spacing: 0.4px; }
.about-modern p { color: var(--muted-text); }

/* --- FORMULARIOS --- */
.form-control, .form-select, textarea.form-control { background-color: #ffffff; border: 1px solid var(--border); color: var(--text-color); }
.form-control::placeholder { color: #8aa09c; }
.form-control:focus, .form-select:focus, textarea.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.15); }

.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.nav-mobile-gap { margin-top: 8px; margin-bottom: 8px; }
.nav-mobile-gap .collapse { margin-top: 10px; }

/* --- Animaciones reveal-on-scroll --- */
[data-reveal] { opacity: 0; transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal].revealed { opacity: 1; }

.accordion-body {
    background-color: #ccffe2;
    color: #000000;
}

.accordion-button:not(.collapsed) {
    background-color: #ffffff;
}

/* --- PROMOS: Visibilidad de flechas e indicadores del carrusel --- */
#promoCarousel .carousel-control-prev,
#promoCarousel .carousel-control-next {
    opacity: 1; /* siempre visibles */
}
#promoCarousel .carousel-control-prev-icon,
#promoCarousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.35); /* círculo sutil para contraste */
    border-radius: 50%;
    background-size: 60% 60%; /* deja margen dentro del círculo */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
#promoCarousel .carousel-indicators [data-bs-target] {
    background-color: rgba(0,0,0,0.4);
}
#promoCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
}
