/* =====================================================
   ÁRIDOS Y TRANSPORTES — Hoja de estilos
   Paleta: azul petróleo profesional + naranja industrial
   ===================================================== */

:root {
    --color-primary: #0f3d56;       /* Azul petróleo oscuro */
    --color-primary-light: #14506f;
    --color-primary-dark: #0a2a3c;
    --color-accent: #e8770a;        /* Naranja industrial */
    --color-accent-dark: #c96508;
    --color-whatsapp: #25d366;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f8;
    --color-bg-dark: #0a2a3c;
    --color-text: #2b3440;
    --color-text-light: #5a6572;
    --color-text-lighter: #8a95a1;
    --color-border: #dde3e9;
    --color-white: #ffffff;

    --font-main: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;

    --shadow-sm: 0 2px 8px rgba(10, 42, 60, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 42, 60, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 42, 60, 0.16);

    --radius: 10px;
    --radius-lg: 16px;

    --container: 1140px;
    --header-height: 76px;

    --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* ---------- Utilidades ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding: 4.5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-white);
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section--dark .section__title {
    color: var(--color-white);
}

.section__title--center {
    text-align: center;
}

.section__lead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-light);
    font-size: 1.08rem;
}

.section__lead--light {
    color: rgba(255, 255, 255, 0.82);
}

.section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.section__grid--reverse .section__text {
    order: 2;
}

.section__grid--reverse .section__media {
    order: 1;
}

.section__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
}

.section__text p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.section__text p strong {
    color: var(--color-primary);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(232, 119, 10, 0.35);
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 119, 10, 0.45);
}

.btn--whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
    background: #1eb857;
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ---------- Checklist ---------- */
.checklist {
    margin: 1.25rem 0 1.75rem;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-light);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Navegación */
.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    display: block;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.nav__link--cta {
    background: var(--color-accent);
    color: var(--color-white);
    margin-left: 0.5rem;
    padding: 0.55rem 1.4rem;
}

.nav__link--cta:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
}

/* Menú móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle__bar {
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(10, 42, 60, 0.88) 0%, rgba(15, 61, 86, 0.78) 55%, rgba(10, 42, 60, 0.92) 100%),
        url('../img/cargandocamiontolva.jpeg') center/cover no-repeat;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 3rem 1.25rem;
}

.hero__title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.22rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.25rem;
    max-width: 640px;
    margin-inline: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   BARRA DE CONFIANZA
   ===================================================== */
.trust-bar {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-bar__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* =====================================================
   TARJETAS (Áridos / Beneficios)
   ===================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 0.5rem;
}

.cards--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Materiales: 3 columnas en escritorio, 2 en tablet, 1 en móvil */
.cards--materiales {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card__img {
    overflow: hidden;
}

.card__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: var(--color-bg-alt);
}

.card:hover .card__img img {
    transform: scale(1.05);
}

.card__body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.card__title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card__body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.card--icon {
    text-align: center;
    padding: 2rem 1.5rem;
}

.card__emoji {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 0.9rem;
}

/* =====================================================
   COBERTURA
   ===================================================== */
.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0 1.25rem;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 500;
}

.coverage-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

/* =====================================================
   GALERÍA
   ===================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: var(--color-border);
}

.gallery__item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(10, 42, 60, 0.9), rgba(10, 42, 60, 0));
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.gallery__item:hover img {
    transform: scale(1.07);
}

/* Video embebido */
.video-embed {
    margin-top: 3rem;
}

.video-embed__title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.video-embed__container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    max-width: 800px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-embed__container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.6rem;
}

.contact-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-card__link {
    font-weight: 600;
    color: var(--color-accent);
}

.contact-card__link:hover {
    color: var(--color-accent-dark);
}

.contact-card__hint {
    font-size: 0.82rem !important;
    color: var(--color-text-lighter) !important;
}

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer__heading {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer__col p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer__list li {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.8);
}

.footer__list a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: floatPulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--color-white);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .section__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section__grid--reverse .section__text,
    .section__grid--reverse .section__media {
        order: unset;
    }

    .trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards--materiales {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: min(320px, 85vw);
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        border-left: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav__link {
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 0.75rem;
        text-align: center;
        justify-content: center;
    }

    .hero {
        min-height: 80vh;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 3rem 0;
    }

    .trust-bar__grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .cards--materiales {
        grid-template-columns: 1fr;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Accesibilidad: usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}
