/* =============================================
   NUTRIZEN · styles.css
   Solo: variables, reset, tipografía base,
   header/nav, footer, utilidades globales
   ============================================= */

/* ── Variables ───────────────────────────── */
:root {
    --sage-50: #f7f9f7;
    --sage-100: #e8f0e8;
    --sage-200: #d1e3d1;
    --sage-300: #a8caa8;
    --sage-400: #7db07d;
    --sage-500: #5a9659;
    --sage-600: #447744;
    --sage-700: #375f37;
    --sage-800: #2d4d2d;
    --sage-900: #1f3a1f;
    --peach-400: #ff9d7d;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color:  #1a1a1a;
    background: var(--sage-50);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Background decoration ───────────────── */
.bg-decoration {
    position: fixed;
    width: 120%; height: 120%;
    top: -10%; left: -10%;
    z-index: -1; opacity: 0.4; pointer-events: none;
}
.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage-200) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}
.bg-decoration::before { width: 600px; height: 600px; top: 10%; right: -5%; }
.bg-decoration::after  { width: 800px; height: 800px; bottom: -10%; left: -10%; animation-delay: 10s; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(50px,-50px) scale(1.1); }
    66%       { transform: translate(-30px,30px) scale(0.9); }
}

/* ── Header / Nav ────────────────────────── */
header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--sage-200);
}
nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sage-700);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo i { font-size: 1.5rem; }
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--sage-600); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--sage-500);
    transition: width 0.3s;
}
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }
.cta-button {
    background: var(--sage-600);
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--sage-600);
    transition: all 0.3s;
}
.cta-button:hover {
    background: var(--sage-700);
    border-color: var(--sage-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90,150,89,0.3);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle span {
    width: 25px; height: 3px;
    background: var(--sage-700);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ── Page header (páginas internas) ──────── */
.page-header {
    margin-top: 80px;
    padding: 4rem 2rem 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--sage-800);
    margin-bottom: 1rem;
    font-weight: 500;
}
.page-header p {
    font-size: 1.3rem;
    color: var(--neutral-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ── Section base ────────────────────────── */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    font-size: 0.95rem;
    color: var(--sage-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--sage-800);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -1px;
}
.section-description {
    font-size: 1.25rem;
    color: var(--neutral-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── CTAs globales ───────────────────────── */
.primary-cta {
    background: var(--sage-600);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: 2px solid var(--sage-600);
}
.primary-cta:hover {
    background: var(--sage-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(90,150,89,0.4);
}
.secondary-cta {
    background: transparent;
    color: var(--sage-700);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s;
    border: 2px solid var(--sage-600);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.secondary-cta:hover {
    background: var(--sage-50);
    transform: translateY(-3px);
}
.secondary-cta-white {
    color: white !important;
    border-color: white !important;
}
.secondary-cta-white:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* ── CTA section (banner verde) ──────────── */
.cta-section {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%);
    color: white;
    border-radius: 40px;
    padding: 5rem 3rem;
    margin: 4rem auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.1); opacity: 0.8; }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────── */
footer {
    background: var(--sage-900);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-about h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-about p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--sage-600);
    transform: translateY(-3px);
}
.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.footer-links ul,
.footer-contact ul { list-style: none; }
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
    padding: 0.4rem 0;
}
.footer-links a:hover { opacity: 1; }
.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0;
    opacity: 0.8;
}
.footer-contact ul li i {
    font-size: 1.2rem;
    color: var(--sage-400);
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
}

/* ── Footer pills ────────────────────────── */
.contact-pills { display: flex; flex-direction: column; gap: 10px; }
.pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 8px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.pill-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.pill-icon--wa  { background: rgba(37,211,102,0.15);  color: #25d366; }
.pill-icon--ig  { background: rgba(192,132,252,0.15); color: #c084fc; }
.pill-icon--em  { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.pill-icon--loc { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.pill-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pill-label {
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pill-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    nav { padding: 1rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 1rem;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .cta-button { display: none; }
    .section-title { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.8rem; }
    .cta-buttons { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 2.5rem; }
}