/* ==========================================================================
   AGRÍCOLA DON ARMANDO - Landing Page
   Estilos de Diseño Premium
   ========================================================================== */

/* --- Importación de Fuentes Locales (Barlow Condensed) --- */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('./Marca/Tipografía/BarlowCondensed-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* --- Variables y Tokens de Diseño --- */
:root {
    --color-brown: #2a1c22;
    --color-brown-light: #3d2932;
    --color-brown-rgb: 42, 28, 34;
    --color-green: #44ac4a;
    --color-green-light: #effaf0;
    --color-green-hover: #38963d;
    --color-green-rgb: 68, 172, 74;
    --color-white: #ffffff;
    --color-bg-light: #fcfbfa;
    --color-text-dark: #2a1c22;
    --color-text-muted: #665b60;
    --color-text-light: #f9f7f5;
    
    --font-primary: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Scrollbar Personalizada --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--color-brown);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-green);
}

/* --- Estructura Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
    transition: var(--transition-bounce);
}
.logo-link:hover {
    transform: scale(1.05);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-white);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 8px 15px rgba(68, 172, 74, 0.3);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, rgba(var(--color-brown-rgb), 0.85) 0%, rgba(var(--color-brown-rgb), 0.98) 100%);
    color: var(--color-text-light);
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Imagen de portada de fondo con máscara */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
    filter: saturate(0.8) blur(2px);
    transform: scale(1.05);
    animation: zoomBackground 20s infinite alternate ease-in-out;
}

@keyframes zoomBackground {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1%, -1%); }
}

/* Formas Decorativas Orgánicas */
.hero-blob {
    position: absolute;
    background: radial-gradient(circle, rgba(var(--color-green-rgb), 0.3) 0%, rgba(var(--color-green-rgb), 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 2;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: floatBlob1 15s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    animation: floatBlob2 18s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 80px) scale(1.1); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .site-header {
        position: relative;
        background: var(--color-brown);
        padding: 1rem 0;
    }
    
    .hero {
        min-height: auto;
        padding-top: 50px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--color-green-rgb), 0.15);
    border: 1px solid rgba(var(--color-green-rgb), 0.3);
    color: var(--color-green);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(68, 172, 74, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(68, 172, 74, 0.2); }
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 0.95;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-title span {
    color: var(--color-green);
    display: block;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.35rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Panel de Información (Suscripción y Estado) --- */
.hero-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-green);
}

.panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.panel-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Barra de Progreso */
.progress-container {
    margin-bottom: 2.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.progress-header span:last-child {
    color: var(--color-green);
}

.progress-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--color-green) 0%, #6cd072 100%);
    border-radius: 5px;
    position: relative;
    animation: fillBar 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: 75%; }
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Formulario */
.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(68, 172, 74, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    background: var(--color-green);
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(68, 172, 74, 0.3);
}

.submit-btn:hover {
    background: var(--color-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(68, 172, 74, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

.form-feedback {
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.form-feedback.success {
    opacity: 1;
    color: var(--color-green);
}

/* --- Sección de Valores de Marca --- */
.values-section {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(var(--color-brown-rgb), 0.05), transparent);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4.5rem;
}

.section-subtitle {
    color: var(--color-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-brown);
    line-height: 1;
    letter-spacing: -0.5px;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de Valores */
.value-card {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-brown-rgb), 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--color-green-rgb), 0.3);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--color-green-light);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: var(--transition-bounce);
}

.value-card:hover .value-icon-wrapper {
    background: var(--color-green);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.value-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.value-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-brown);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.value-card-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.4;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-brown);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-brand {
        align-items: center;
    }
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .footer-contact {
        align-items: center;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    color: var(--color-green);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: var(--color-green);
}
