/* ============================================================
   RBC Sur — Hoja de estilos principal
   Colores: Verde #46c95d  |  Azul #1e9cd8
   Fuente: Inter (Google Fonts)
============================================================ */

:root {
    --green:       #46c95d;
    --green-dark:  #35a849;
    /* Verde legible para TEXTO sobre fondo claro (5.4:1 sobre blanco).
       El verde de marca solo cumple sobre fondo oscuro o como fondo. */
    --green-text:  #237a35;
    --blue:        #1e9cd8;
    --blue-dark:   #0d7ab5;
    /* Azul legible para TEXTO de enlace sobre fondo claro (5.9:1 sobre blanco,
       5.3:1 sobre los fondos celestes tintados). El azul de marca da 3.1:1. */
    --blue-text:   #0b6a9e;
    --dark:        #0d1b2a;
    --dark-2:      #1a2d42;
    --gray-light:  #f5f7fa;
    /* Gris de texto secundario: 5.4:1 sobre --gray-light, 5.9:1 sobre blanco */
    --gray:        #5d666e;
    --white:       #ffffff;
    --font-main:   'Inter', sans-serif;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(30,156,216,.12);
    --transition:  .3s ease;
}

/* ─── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: #2c3e50;
    background: var(--white);
    overflow-x: hidden;
}

a { color: var(--blue-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: #0a5f8f; }

img { max-width: 100%; height: auto; }

/* ─── Utility ───────────────────────────────────────────── */
.text-green  { color: var(--green) !important; }
.text-blue   { color: var(--blue)  !important; }
.bg-green    { background-color: var(--green) !important; }
.bg-blue     { background-color: var(--blue)  !important; }
.bg-dark-1   { background-color: var(--dark) !important; }
.bg-gray-lt  { background-color: var(--gray-light) !important; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn-green {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: background var(--transition), transform var(--transition);
}
.btn-green:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-blue {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
}
.btn-blue:hover { background-color: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-outline-green {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
}
.btn-outline-green:hover { background-color: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

/* ─── Section titles ────────────────────────────────────── */
.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 640px;
}

/* ─── Top bar ───────────────────────────────────────────── */
.topbar {
    background-color: var(--dark);
    padding: .4rem 0;
    font-size: .82rem;
}
.topbar-link {
    color: #b0bec5;
    text-decoration: none;
    transition: color var(--transition);
}
.topbar-link:hover, .topbar-link a:hover { color: var(--green); }
.topbar-link i { color: var(--green); }

/* Language buttons */
.lang-btn {
    padding: .2rem .55rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    color: #b0bec5;
    background: rgba(255,255,255,.07);
    border: none;
    transition: all var(--transition);
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,.15); }
.lang-btn.active { color: var(--white); background: var(--blue); }

/* ─── Navbar ────────────────────────────────────────────── */
.bg-primary-dark { background-color: var(--dark-2) !important; }

#mainNav {
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
    transition: background var(--transition);
}
#mainNav.scrolled { background-color: var(--dark) !important; }

.navbar-brand { font-size: 1.3rem; font-weight: 700; }
.brand-text { color: var(--white); }
.brand-green { color: var(--green); }

.navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    position: relative;
    transition: color var(--transition);
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--white) !important; }

/* ─── Hero Carousel ─────────────────────────────────────── */
#heroCarousel { margin-top: 0; }

.hero-slide {
    height: 92vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,.75) 0%, rgba(30,156,216,.25) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.hero-badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: .92;
}
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.5);
    border: none;
}
.carousel-indicators .active { background-color: var(--green); }

/* ─── Stats band ─────────────────────────────────────────── */
.stats-band {
    background: linear-gradient(90deg, var(--dark-2), var(--dark));
    color: var(--white);
    padding: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}
.stat-label { font-size: .9rem; color: #90a4ae; margin-top: .3rem; }

/* ─── Services ───────────────────────────────────────────── */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.service-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.service-card-body { padding: 1.5rem; }
.service-icon-wrap {
    width: 54px; height: 54px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), #2ecc71);
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.service-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}
.service-card-body p { font-size: .9rem; color: var(--gray); }

/* ─── Why us ─────────────────────────────────────────────── */
.why-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    transition: box-shadow var(--transition);
}
.why-item:hover { box-shadow: var(--shadow); }
.why-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #42a5f5);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.3rem;
}
.why-item h3, .why-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.why-item p  { font-size: .88rem; color: var(--gray); margin-bottom: 0; }

/* ─── Process ────────────────────────────────────────────── */
.process-section { background: var(--gray-light); }
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 16px rgba(70,201,93,.35);
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.process-step p  { font-size: .9rem; color: var(--gray); }

/* Process connector (arrows between steps) */
.process-connector {
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 1.5rem;
    padding-top: 1.5rem;
}

/* ─── Projects ───────────────────────────────────────────── */
.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-4px); }
.project-card img {
    width: 100%; height: 230px;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,.85) 0%, transparent 55%);
    display: flex; align-items: flex-end;
    padding: 1.2rem;
}
.project-info { color: var(--white); }
.project-badge {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    background: var(--green); color: var(--white);
    padding: .2rem .7rem; border-radius: 50px;
    margin-bottom: .5rem; display: inline-block;
}
.project-info h2, .project-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.project-info p  { font-size: .8rem; opacity: .85; margin-bottom: 0; }
.project-filter .btn-filter {
    border: none;
    color: var(--blue-text);
    background: rgba(30,156,216,.1);
    border-radius: 50px;
    padding: .35rem 1.2rem;
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.project-filter .btn-filter.active,
.project-filter .btn-filter:hover { background: var(--blue); color: var(--white); }

/* ─── CTA band ───────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--green) 100%);
    color: var(--white);
}
.cta-title    { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-subtitle { font-size: 1.05rem; opacity: .9; margin-bottom: 0; }

/* ─── News ───────────────────────────────────────────────── */
.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 1.4rem; }
.news-category {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--green-text);
}
/* h2 o h3 según la página: el nivel lo marca la jerarquía, no el diseño */
.news-card-body h2, .news-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: .5rem 0; }
.news-card-body p  { font-size: .87rem; color: var(--gray); }
.news-date { font-size: .78rem; color: var(--gray); }

/* ─── Contact ────────────────────────────────────────────── */
.contact-section { background: var(--white); }
.contact-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 2px 24px rgba(0,0,0,.08);
}
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 10px; background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.1rem;
}
.contact-info-item h6 { font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.contact-info-item p  { color: var(--gray); font-size: .9rem; margin-bottom: 0; }
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(30,156,216,.15);
}

/* ─── Page hero (servicios / trabajos / noticias / contacto) ── */
.page-hero {
    padding: 6rem 0 4.5rem;
    background:
        radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, #0a4a6e 100%);
    background-size: 28px 28px, 100% 100%;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,156,216,.18) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title   { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-hero-sub     { font-size: 1.1rem; opacity: .85; max-width: 600px; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: .85rem; }
.breadcrumb-item.active { color: var(--green); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── Province/Population pages ─────────────────────────── */
.provincia-hero {
    padding: 7rem 0 5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}
.provincia-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,.8) 0%, rgba(30,156,216,.2) 100%);
}
.provincia-content { position: relative; z-index: 1; }

.local-benefit-card {
    border-left: 4px solid var(--green);
    padding: 1rem 1.2rem;
    background: var(--white);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 1rem;
}
.local-benefit-card h5 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.local-benefit-card p  { font-size: .85rem; color: var(--gray); margin-bottom: 0; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background-color: var(--dark);
    color: #b0bec5;
    font-size: .88rem;
}
.footer-heading {
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: .6rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--green);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #90a4ae; transition: color var(--transition); }
.footer-links a:hover { color: var(--green); padding-left: 4px; }
.footer-desc { color: #90a4ae; font-size: .88rem; line-height: 1.7; }
.footer-contact-info p { font-size: .85rem; color: #90a4ae; margin-bottom: .4rem; }
.footer-contact-info a { color: #90a4ae; }
.footer-contact-info a:hover { color: var(--green); }
.footer-hr { border-color: rgba(255,255,255,.08); }
.footer-copy { font-size: .8rem; color: #607d8b; }
.footer-copy a { color: var(--green); }
.footer-cert-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.footer-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    color: #90a4ae;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: .4rem .8rem;
    white-space: nowrap;
}

/* ─── Anfitrión Solar ───────────────────────────────────── */
.anf-hero {
    background: var(--dark);
    color: #fff;
    min-height: 600px;
}
.anf-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 50%, #0f2d1a 100%);
    opacity: .97;
}
h1 { font-family: 'Poppins', sans-serif; font-weight: 900; }
.anf-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}
.anf-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    max-width: 600px;
    line-height: 1.7;
}
.anf-stat { display: flex; flex-direction: column; }
.anf-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--green); line-height: 1; }
.anf-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .15rem; }

.anf-hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.anf-type-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
}
.anf-type-card:nth-child(2) { border-top-color: var(--green); }
.anf-type-card-body { padding: 1.75rem 2rem 2rem; }
.anf-type-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.anf-type-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 1rem;
}
.anf-type-card h3 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    font-family: 'Poppins', sans-serif !important;
    margin-top: 1.2rem !important;
    margin-bottom: .5rem;
}

.anf-step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
}
.anf-step-num {
    font-size: 9rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--green) !important;
    margin-bottom: .25rem;
    font-family: 'Poppins', sans-serif !important;
    display: block;
}
.anf-step-icon { font-size: 3.5rem; margin-top: .5rem; }

.anf-benefits-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #0f2d1a 100%);
    color: #fff;
}
.anf-benefits-title {
    color: #fff !important;
}
.anf-benefits-section .section-label {
    color: #fff !important;
    background: rgba(255,255,255,.15);
    padding: .2rem .8rem;
    border-radius: 4px;
}
.anf-benefit-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 2rem;
    color: #fff;
}
.anf-benefit-header {
    background: var(--blue);
    color: #fff;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    font-family: 'Poppins', sans-serif;
    padding: 1rem 1.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.anf-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.anf-num-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.anf-num-val { font-size: 4rem !important; font-weight: 900 !important; color: var(--blue); line-height: 1; font-family: 'Poppins', sans-serif !important; }
.anf-num-lbl { font-size: .85rem; color: var(--gray); margin-top: .4rem; }

.anf-cta-final { background: var(--gray-light); }

/* FAQ dark theme — white chevron */
#faqAnfitrion .accordion-button::after {
    filter: brightness(0) invert(1);
}
#faqAnfitrion .accordion-button:not(.collapsed) {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 767px) {
    .anf-numbers-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .anf-num-val { font-size: 2.2rem; }
    .anf-hero-title { font-size: 1.8rem; }
    .anf-step-num { font-size: 6rem; }
}

.anf-home-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5ff 100%);
    border-top: 3px solid var(--green);
}
.anf-mini-stat {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow);
    min-width: 140px;
}
.anf-mini-stat strong { font-size: .95rem; color: var(--dark); }
.anf-mini-stat span { font-size: .8rem; color: var(--gray); margin-top: .15rem; }

.social-btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #b0bec5;
    font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--green); color: var(--white); }

/* Province selector in footer */
.footer-select {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
    color: #b0bec5;
    font-size: .85rem;
}
.footer-select:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: none;
}
.footer-select option { background: var(--dark-2); color: var(--white); }

.pob-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    max-height: 200px;
    overflow-y: auto;
}
.pob-link {
    font-size: .75rem;
    color: #90a4ae;
    background: rgba(255,255,255,.06);
    padding: .2rem .7rem;
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}
.pob-link:hover { background: var(--green); color: var(--white); }
.footer-pob-header { font-size: .82rem; color: #90a4ae; margin-bottom: .6rem; }

/* ─── WhatsApp button ────────────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white) !important;
    font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,.6);
    color: var(--white);
}

/* ─── Service detail page ────────────────────────────────── */
.service-detail {
    padding: 5rem 0;
    border-bottom: 1px solid #e9ecef;
}
.service-detail:last-child { border-bottom: none; }
.service-detail-img {
    width: 100%; border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-slide { height: 70vh; }
    .process-connector { display: none; }
    .topbar .col-md-7 { font-size: .78rem; }
}
@media (max-width: 575.98px) {
    .hero-slide { height: 85vh; }
    .stat-number { font-size: 2rem; }
    .service-card-img { height: 170px; }
    .contact-box { padding: 1.5rem; }
    .whatsapp-btn { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
    .page-hero { padding: 5rem 0 3.5rem; }
}

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Cookie banner ──────────────────────────────────────── */
#cookieBanner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--dark);
    color: #b0bec5;
    padding: 1rem 1.5rem;
    z-index: 9999;
    font-size: .88rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
#cookieBanner a { color: var(--green); }

/* ─── Accesibilidad (WCAG AA) ────────────────────────────── */
/* Áreas táctiles: tamaño/espaciado suficientes en móvil */
.lang-btn {
    min-height: 32px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.topbar-link { display: inline-flex; align-items: center; min-height: 32px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.social-btn { min-width: 40px; min-height: 40px; }
.pob-link { min-height: 32px; display: inline-flex; align-items: center; }

/* Indicadores del carrusel: área táctil de 24px con el punto visible de 10px.
   El punto se pinta con ::after para no agrandar el círculo a la vista. */
.carousel-indicators [data-bs-target] {
    width: 24px; height: 24px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    opacity: 1;
    position: relative;
}
.carousel-indicators [data-bs-target]::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.5);
    transition: background-color var(--transition);
}
.carousel-indicators .active { background-color: transparent; opacity: 1; }
.carousel-indicators .active::after { background-color: var(--green); }

/* Enlaces distinguibles por algo más que el color: subrayado cuando el enlace
   va dentro de un bloque de texto (las clases deben existir en el markup). */
.footer-contact-info a,
.footer-copy a,
.legal-text a,
.news-body a,
#cookieBanner a { text-decoration: underline; text-underline-offset: 2px; }

/* Contraste (WCAG AA, texto pequeño ≥ 4.5:1 medido sobre su fondo real):
   el verde de marca sobre blanco da 2.15:1, así que el TEXTO en verde sobre
   fondo claro usa --green-text (5.4:1). Los fondos verdes y el verde sobre
   fondo oscuro (8:1) no se tocan: son marca y ya cumplen. */
.section-label { color: var(--green-text); }
.text-green-dark { color: var(--green-text) !important; }
.footer-copy { color: #8199a5; }
