/* styles.css */

/* Paleta base */
:root {
    --color-bg: #f5f5f5;          /* blanco humo */
    --color-bg-alt: #ffffff;
    --color-primary: #32A639;     /* verde principal */
    --color-primary-soft: #A9D941;/* verde lima suave */
    --color-accent: #F29727;      /* naranja tipo mango */
    --color-accent-soft: #E7F291; /* amarillo suave */
    --color-danger: #F20505;      /* rojo acento (solo alertas) */
    --color-text: #1a202c;
    --color-text-soft: #4a5568;
    --color-border: #e2e2e2;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1120px;
    --transition: all 0.2s ease-in-out;
}

/* Reset ligero */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Utilidades base */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-inner {
    display: block;
}

.section-title {
    font-size: 2rem;
    margin: 0 0 1rem;
}

.section-lead {
    font-size: 1rem;
    color: var(--color-text-soft);
    max-width: 680px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cards-products .card {
    border-top: 4px solid var(--color-accent);
}

.card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card-soft {
    border-radius: var(--radius-md);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0;
    color: var(--color-text-soft);
}

.section-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: #28822d;
    border-color: #28822d;
}

.btn-outline {
    background: transparent;
    color: var(--color-bg);
    border-color: var(--color-primary-soft);
}

.btn-outline:hover {
    background: var(--color-primary-soft);
    color: #1a202c;
}

.btn-full {
    width: 100%;
}

/* Header y navegación */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-mark {
    font-size: 1.2rem;
}

.logo-mark img{
    font-size: 1.2rem;
    padding: 20px;
    width: 150px;
    height: auto;

}

.logo-text {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: rgb(110, 110, 110);
    font-weight: bold;
    /* color: var(--color-text-soft); */
    padding: 0.3rem 0;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: #cc1b59;
    /* background: var(--color-accent); */
    transition: width 0.2s ease-in-out;
}

.main-nav a:hover {
    color: #cc1b59;
    /* color: var(--color-text); */
}

.main-nav a:hover::after {
    width: 100%;
}

/* Toggle del menú (hamburguesa, CSS only) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 32px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/image-hero.jpeg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Imagen de borde a borde */
.image-band {
    width: 100%;
    margin-top: 2rem;
}

.image-band img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Pills (Quiénes somos) */
.pill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.pill {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.pill h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.pill p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

/* Steps (Cómo trabajamos) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

/* Sliders (frutas y clientes) */
.slider-band {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    background: var(--color-bg-alt);
}

.slider-band-fruits {
    background: var(--color-accent-soft);
}

.slider-band-clients {
    background: #ffffff;
}

.slider-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* El ancho se ajusta solo; la animación usa % del ancho total */
    animation: slider-scroll 35s linear infinite;
}

.slider-track-clients {
    animation-duration: 40s;
}

.slider-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 20px;
    /* background: #ffffff; */
    /* box-shadow: var(--shadow-soft); */
}

/* Animación infinita: 
   la pista tiene duplicado el set de imágenes.
   Al llegar a -50% volvemos a una secuencia idéntica. */
@keyframes slider-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contacto */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-text {
    max-width: 540px;
}

.contact-highlights {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.contact-highlights li + li {
    margin-top: 0.25rem;
}

.contact-form-wrapper {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.contact-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.contact-image img {
    margin-top: 60px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    font: inherit;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(50, 166, 57, 0.2);
}

/* Footer */
.site-footer {
    background: #0b1510;
    color: #e2e8f0;
    padding: 1.8rem 0;
    font-size: 0.85rem;
}

.footer-inner {
    text-align: center;
}

.footer-note {
    margin-top: 0.3rem;
    color: #a0aec0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-two-cols {
        grid-template-columns: 1fr;
    }

    .pill-list {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1.5rem 1rem;
        border-bottom: 1px solid var(--color-border);
        display: none;
    }

    .main-nav a {
        padding: 0.45rem 0;
    }

    .nav-toggle:checked + .nav-toggle-label + .main-nav {
        display: flex;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .slider-item img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 3.5rem 0;
    }

    .slider-item img {
        width: 100px;
        height: 100px;
    }
}


.footer-contact {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

.footer-contact p {
    margin: 0.25rem 0;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}
