
/* 
==============================================
TARPUY FOODS - WEBSITE STYLES
==============================================
Main stylesheet for Tarpuy Foods website
Colors: Primary #2F855A (verde andino), Secondary #F4EDE4 (crema), Accent #F2B705 (dorado)
Font: Inter for headings, system-ui for body
==============================================
*/

/* ==============================================
   RESET & BASE STYLES
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ==============================================
   LAYOUT & CONTAINERS
   ============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2F855A;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F855A;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2F855A;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2F855A;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-link {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.lang-link:hover {
    transform: scale(1.1);
}

.lang-link.active {
    opacity: 1;
}

.lang-link:not(.active) {
    opacity: 0.6;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2F855A;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1rem;
}

.mobile-nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: #333;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #2F855A;
}

.mobile-language-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ==============================================
   BUTTONS
   ============================================== */

.btn-primary,
.btn-secondary,
.cta-button,
.btn-whatsapp,
.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary,
.cta-button {
    background: #2F855A;
    color: white;
}

.btn-primary:hover,
.cta-button:hover {
    background: #246944;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #F4EDE4;
    color: #2F855A;
    border: 2px solid #2F855A;
}

.btn-secondary:hover {
    background: #2F855A;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-whatsapp-large {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-whatsapp-large:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-main-text {
    font-weight: 600;
}

.whatsapp-sub-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
    background: linear-gradient(135deg, #F4EDE4 0%, #fff 100%);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: #2F855A;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==============================================
   SECTION STYLES
   ============================================== */

.section-title {
    text-align: center;
    color: #2F855A;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================
   PAGE HERO
   ============================================== */

.page-hero {
    background: linear-gradient(135deg, #2F855A 0%, #246944 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==============================================
   FEATURES SECTION
   ============================================== */

.features {
    padding: 4rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #F4EDE4;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
}

/* ==============================================
   PRODUCTS SECTION
   ============================================== */

.products-preview {
    padding: 4rem 0;
    background: #F4EDE4;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-title {
    color: #2F855A;
    margin: 1rem 1rem 0.5rem;
}

.product-description {
    padding: 0 1rem 1.5rem;
    color: #666;
}

.products-cta {
    text-align: center;
}

/* ==============================================
   DETAILED PRODUCTS
   ============================================== */

.products-section {
    padding: 4rem 0;
}

.products-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-detailed-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    padding: 2rem;
    background: #F4EDE4;
    border-radius: 12px;
    align-items: start;
}

.product-image-container {
    text-align: center;
}

.product-detailed-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detailed-title {
    color: #2F855A;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detailed-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.benefits-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    color: #555;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list strong {
    color: #2F855A;
}

.product-cta {
    margin-top: 2rem;
}

/* Comparison Section */
.comparison-section {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comparison-title {
    text-align: center;
    color: #2F855A;
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.comparison-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: #F4EDE4;
}

.comparison-item h4 {
    color: #2F855A;
    margin-bottom: 0.5rem;
}

.comparison-item p {
    color: #666;
    margin: 0;
}

/* ==============================================
   RECIPES SECTION
   ============================================== */

.recipes-section {
    padding: 4rem 0;
}

.recipes-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-image-container {
    position: relative;
}

.recipe-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.recipe-description {
    color: #666;
    margin-bottom: 1rem;
}

.recipe-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* PDF Download Section */
.pdf-download-section {
    margin: 4rem 0;
}

.pdf-download-card {
    background: linear-gradient(135deg, #F4EDE4 0%, #fff 100%);
    border-radius: 12px;
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.pdf-icon {
    font-size: 4rem;
}

.pdf-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.pdf-description {
    color: #666;
    margin-bottom: 1rem;
}

.pdf-features {
    list-style: none;
}

.pdf-features li {
    padding: 0.25rem 0;
    color: #555;
}

.pdf-download-cta {
    text-align: center;
}

.download-btn {
    margin-bottom: 0.5rem;
}

.pdf-note {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* Cooking Tips */
.cooking-tips {
    margin-top: 4rem;
}

.tips-title {
    text-align: center;
    color: #2F855A;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-item {
    text-align: center;
    padding: 2rem;
    background: #F4EDE4;
    border-radius: 12px;
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-title {
    color: #2F855A;
    margin-bottom: 0.5rem;
}

.tip-description {
    color: #666;
    margin: 0;
}

/* ==============================================
   PURCHASE PROCESS
   ============================================== */

.purchase-process {
    padding: 4rem 0;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 300px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: #2F855A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.step-action {
    margin-bottom: 1rem;
}

.step-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item {
    font-size: 0.9rem;
    color: #2F855A;
    background: rgba(47, 133, 90, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.step-arrow {
    font-size: 2rem;
    color: #2F855A;
    font-weight: bold;
}

/* ==============================================
   WHATSAPP CTA SECTION
   ============================================== */

.whatsapp-cta-section {
    padding: 4rem 0;
    background: #F4EDE4;
}

.whatsapp-cta-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.whatsapp-cta-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.whatsapp-cta-description {
    color: #666;
    margin-bottom: 2rem;
}

.whatsapp-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-icon {
    font-size: 1.2rem;
}

.benefit-text {
    color: #555;
}

/* ==============================================
   PAYMENT & SHIPPING
   ============================================== */

.payment-methods,
.shipping-info {
    padding: 4rem 0;
}

.payment-grid,
.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.payment-item,
.shipping-card {
    text-align: center;
    padding: 2rem;
    background: #F4EDE4;
    border-radius: 12px;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.payment-title,
.shipping-title {
    color: #2F855A;
    margin-bottom: 1rem;
}

.payment-description {
    color: #666;
    margin: 0;
}

.shipping-list {
    list-style: none;
    color: #666;
}

.shipping-list li {
    padding: 0.25rem 0;
}

/* ==============================================
   FOOTER
   ============================================== */

.footer {
    background: #2F855A;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    margin-bottom: 1rem;
}

.footer-text {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    /* Hide desktop nav, show mobile */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Hero section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Product detailed cards */
    .product-detailed-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detailed-image {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    /* Process steps */
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    /* WhatsApp CTA */
    .whatsapp-cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* PDF download */
    .pdf-download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Spacing adjustments */
    .hero {
        padding: 2rem 0;
    }
    
    .features,
    .products-preview,
    .products-section,
    .recipes-section,
    .purchase-process,
    .whatsapp-cta-section,
    .payment-methods,
    .shipping-info {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .products-grid,
    .comparison-grid,
    .tips-grid,
    .payment-grid,
    .shipping-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   ANIMATIONS & TRANSITIONS
   ============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.product-card,
.recipe-card,
.step-item {
    animation: fadeInUp 0.6s ease-out;
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==============================================
   ACCESSIBILITY
   ============================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid #2F855A;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #fff;
    }
    
    .feature-card,
    .product-card,
    .recipe-card {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
