/* Pavimentaciones Algarrobo — estilos cercanos al tema Astra + Elementor original */

:root {
    --pa-accent: #008000;
    --pa-heading: #1a1a1a;
    --pa-footer: #2b2b2b;
    --pa-footer-bottom: #1f1f1f;
    --pa-slide-overlay: rgba(0, 0, 0, 0.45);
    font-size: 16px;
}

body {
    font-family: "Karla", system-ui, sans-serif;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav .nav-link,
.hero-slide-title {
    font-family: "Rubik", system-ui, sans-serif;
}

.link-accent,
.top-bar .link-accent {
    color: var(--pa-accent) !important;
}

.site-logo {
    max-height: 72px;
    width: auto;
}

@media (min-width: 992px) {
    .site-logo {
        max-height: 108px;
    }
}

.navbar-nav .nav-link {
    color: var(--pa-heading) !important;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--pa-accent) !important;
}

.navbar-nav .nav-link.active {
    color: var(--pa-accent) !important;
    font-weight: 700;
}

/* Hero carousel */
.hero-carousel .carousel-item {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .hero-carousel .carousel-item {
        min-height: 78vh;
    }
}

.hero-carousel .carousel-caption {
    bottom: 20%;
    padding: 1.5rem 1rem;
    background: var(--pa-slide-overlay);
    border-radius: 0.25rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-slide-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.35rem, 4vw, 2.25rem);
    letter-spacing: 0.04em;
}

.hero-slide-desc {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    margin-bottom: 1rem;
}

.hero-carousel .btn-slide {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-width: 2px;
}

.section-services-intro {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.service-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .service-card .card-img-top {
        height: 240px;
    }
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-card .card-divider {
    height: 2px;
    width: 48px;
    background: var(--pa-accent);
    margin: 0.75rem auto 0;
}

.service-card.text-start .card-divider {
    margin-left: 0;
    margin-right: auto;
}

.partners-section {
    background: #f3f4f6;
}

.partner-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.1);
}

.partner-carousel .carousel-item {
    min-height: 100px;
}

.site-footer {
    background: var(--pa-footer);
}

/* Refuerzo sobre utilidades Bootstrap (fondo blanco redondeado en pie de página) */
.site-footer .footer-logo-badge {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.site-footer .footer-logo-badge img {
    max-width: min(100%, 300px);
    height: auto;
}

.footer-main a {
    color: #fff;
    text-decoration: none;
}

.footer-main a:hover {
    text-decoration: underline;
    color: #c8e6c9;
}

.footer-nav a {
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-bottom {
    background: var(--pa-footer-bottom);
}

.btn-scroll-top {
    width: 48px;
    height: 48px;
    z-index: 1040;
    opacity: 0.9;
}

.page-hero-img {
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

/* Landings: sin Google Fonts (mejor FCP / PageSpeed) */
body.landing-system-fonts {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.landing-system-fonts h1,
body.landing-system-fonts h2,
body.landing-system-fonts h3,
body.landing-system-fonts .navbar-nav .nav-link,
body.landing-system-fonts .display-6 {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Landings Google Ads — hero a pantalla completa (LCP = <img> + preload WebP alineado) */
.landing-hero {
    padding: 0;
    min-height: 52vh;
}

@media (max-width: 767.98px) {
    .landing-hero {
        min-height: 48vh;
    }
}

.landing-hero-min {
    min-height: 38vh;
}

.landing-hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.landing-hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.landing-hero--retro .landing-hero-picture img {
    object-position: center 42%;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
    z-index: 2;
}

/* Bootstrap .ratio: no pisar el posicionamiento del hijo directo con utilidades en <picture> */
.ratio > picture {
    display: block;
}

.ratio > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
