
:root {
    --blue: #2B6A8C;
    --blue-dark: #003654;
    --gray-dark: #374148;
    --gray: #9CA3AF;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-dark);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px auto;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.section-header p {
    margin: 0;
    color: var(--gray-dark);
    opacity: 0.9;
}

/* NAV */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.nav-logo img {
    height: 150px;
    width: 150px;
    object-fit: contain;
    display: block;
}

.nav-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--blue);
    transition: width 0.18s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none; /* solo se muestra en mobile */
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--gray-dark);
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span + span {
    margin-top: 4px;
}

/* Animación a “X” cuando el menú está abierto */
body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* Hero */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.90) 0%,   /* bien legible donde está el texto */
            rgba(255, 255, 255, 0.75) 22%,
            rgba(255, 255, 255, 0.45) 40%,
            rgba(255, 255, 255, 0.15) 65%,
            rgba(255, 255, 255, 0.00) 100%  /* casi limpia la parte derecha */
        ),
        url('../img/banner-home.jpg');     /* imagen inicial */
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    /* suaviza la transición entre imágenes del slider */
    transition: background-image 0.8s ease-in-out;
}


.hero-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 0 40px 0;
}

.hero-left {
    flex: 1;
}

.tagline {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue);
    background-color: rgba(43, 106, 140, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 14px 0;
    color: var(--blue-dark);
}

/* override de .hero-lead */
.hero-lead {
    font-size: 16px;
    max-width: 560px;               /* un poco más angosto para que no se vaya tanto a la derecha */
    margin-bottom: 20px;
    opacity: 1;                     /* texto al 100% */
    color: var(--gray-dark);
    background: rgba(255, 255, 255, 0.78); /* “tarjetita” blanca semi-transparente */
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-block;          /* para que el fondo se adapte al texto */
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--blue-dark); /* texto más fuerte */
}

.hero-meta span {
    padding: 6px 11px;
    border-radius: 999px;
    background-color: rgba(0, 54, 84, 0.08); /* azul muy suave de fondo */
    border: 1px solid rgba(0, 54, 84, 0.25); /* borde para que se recorten */
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.18s ease-in-out;
}

.btn.primary {
    background-color: var(--blue);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(43, 106, 140, 0.30);
}

.btn.primary:hover {
    background-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 54, 84, 0.40);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(156, 163, 175, 0.35);
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 19px;
    color: var(--blue-dark);
}

.card p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.5;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-dark);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Split blocks */
.split {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.split.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1.15;
}

.split-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.split-text p {
    margin-top: 0;
    margin-bottom: 12px;
}

.split-text ul {
    padding-left: 18px;
    margin: 0;
}

.split-text li {
    margin-bottom: 6px;
}

.split-visual {
    flex: 1;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Placeholder visuals */
.blueprint {
    background-image: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=1200&q=80');
}

.plant {
    background-image: url('https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1200&q=80');
}

.cuchillas {
    background-image: url('../img/cuchillas-industriales.jpg');
    background-size: contain;      /* llena todo el contenedor */
    background-position: center; /* centrada */
    background-repeat: no-repeat;
}


/* Contact */
.contact-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}

.contact-item {
    flex: 1 1 200px;
    background-color: #ffffff;
    padding: 16px 16px;
    border-radius: 14px;
    border: 1px solid rgba(156, 163, 175, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Page titles */
.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin: 0 0 16px 0;
    color: var(--blue-dark);
}

.page-intro {
    max-width: 720px;
    font-size: 15px;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float:hover img {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    margin-top: 40px;
    padding: 30px 0 0;
    font-size: 14px;
    color: var(--gray-dark);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    margin: 0;
    max-width: 280px;
    font-size: 13px;
    opacity: 0.9;
}

.footer-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px 0;
    color: var(--blue-dark);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 4px;
}

.footer-link {
    text-decoration: none;
    color: var(--gray-dark);
}

.footer-link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    margin-top: 24px;
}

.footer-bottom-inner {
    padding: 10px 0 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.footer-legal {
    margin: 0;
}

@media (max-width: 900px) {
    .nav-bar {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .nav-right {
        display: none; /* oculto por defecto en mobile */
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 10px;
        background-color: #ffffff;
        padding: 10px 0 14px 0;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    }

    .nav-right .nav-link {
        padding: 6px 20px;
    }

    /* cuando el body tiene la clase nav-open, mostramos el menú */
    body.nav-open .nav-right {
        display: flex;
    }

    .hero-inner {
        padding: 36px 0 30px 0;
    }

    .split,
    .split.reverse {
        flex-direction: column;
    }
}


/* Responsive footer */
@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

/* Visuales específicos para la sección de plásticos */
.plasticos-piezas {
    background-image: url('../img/plasticos-piezas.jpg');
}

.plasticos-materia {
    background-image: url('../img/plasticos-materia.jpg');
}

/* Galería de imágenes para la sección de software / mantenimiento */
.software-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.software-image {
    flex: 1 1 280px;
    max-width: 360px;
}

.software-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Visual específico para envases de agua y bebidas */
.packaging-aguas {
    background-image: url('../img/packaging-aguas.jpg');
}
