/*
Theme Name: Danita Landing
Description: Tema personalizado para landing page de Danita Brands, Corp. - Empresa líder en importación de frutas y vegetales tropicales de alta calidad.
Author: Danita Brands
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danita-landing
*/

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Variables CSS */
:root {
    /* Palette from screenshot */
    --color-primary-green: #4CAF50;
    /* Brighter green */
    --color-dark-green: #2E7D32;
    --color-accent-orange: #FF9800;
    --color-accent-yellow: #FFC107;

    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray-light: #f5f5f5;
    --color-gray-text: #555555;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    /* More breathing room */

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

.text-uppercase {
    text-transform: uppercase;
}

/* Menú de Navegación */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-white);
    position: relative;
    /* Or fixed if sticky needed */
    z-index: 100;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-small {
    height: 60px;
    /* Slightly larger */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-black);
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--color-primary-green);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Tall hero */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/port-banner.webp') center/cover no-repeat;
    text-align: center;
    color: var(--color-white);
    padding: var(--spacing-md);
}

/* Dark overlay for readability */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    max-width: 280px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background-color: var(--color-accent-yellow);
    color: var(--color-black);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.cta-button:hover {
    background-color: #ffca28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* Sección Quiénes Somos */
.about-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Left side smaller */
    gap: var(--spacing-xl);
    align-items: center;
}

.about-left {
    border-left: 5px solid var(--color-primary-green);
    padding-left: var(--spacing-md);
}

.section-title {
    font-size: 0.9rem;
    color: var(--color-gray-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.section-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-black);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-gray-text);
    line-height: 1.8;
}

/* Sección Historia, Misión, Visión - Complete Rebuild */
.values-section {
    width: 100%;
    background-color: #fff;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.value-card {
    display: flex;
    flex-direction: column;
}

/* Image Section */
.value-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
}

.value-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.value-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
    color: white;
    z-index: 2;
}

.value-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.value-heading {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 4px solid rgba(76, 175, 80, 0.7);
    display: inline-block;
}

/* Orange border for vision card */
.value-card:last-child .value-heading {
    border-bottom-color: rgba(255, 152, 0, 0.7);
}

/* Content Section */
.value-content {
    position: relative;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.value-content-green {
    background-color: #4CAF50;
    color: white;
}

.value-content-orange {
    background-color: #FF9800;
    color: white;
}

/* Quote Marks */
.quote-mark {
    position: absolute;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.15;
    color: white;
    font-weight: 700;
    user-select: none;
}

.quote-open {
    top: 0;
    left: 1.5rem;
}

.quote-close {
    bottom: 0;
    right: 1.5rem;
}

/* Typography */
.value-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.value-text {
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Sección Productos */
.products-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.products-qualities {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.underline-green {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.underline-green::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-primary-green);
    opacity: 0.3;
    z-index: -1;
}

.products-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
    color: var(--color-gray-text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Overlay text on product card like screenshot? 
   Or text below? The screenshot shows text overlay at bottom left of image. 
   Let's do overlay. */
.product-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: left;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

/* Form Column (Left) */
.contact-form-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gray-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-green);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #000;
}

/* Text Column (Right) */
.contact-info {
    padding-top: 1rem;
}

.section-subtitle {
    display: block;
    font-weight: 700;
    color: var(--color-gray-text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 2rem;
    position: relative;
}

.green-underline {
    width: 100px;
    height: 6px;
    background-color: var(--color-primary-green);
    margin-top: 1rem;
    border-radius: 3px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-text);
    font-size: 1rem;
}

.contact-item a {
    color: var(--color-gray-text);
    text-decoration: none;
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Main Footer */
.main-footer {
    background-color: #5C5D52;
    /* Dark olive green */
    color: white;
    padding: 4rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 25px;
    margin-left: 20px;
    align-items: center;
}

.lang-link {
    font-size: 25px;
    /* Size increased to 25px */
    cursor: pointer;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s ease;
    filter: grayscale(100%);
    line-height: 1;
}

.lang-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.lang-link.active {
    opacity: 1;
    font-weight: bold;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.footer-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-logo-double {
    height: 80px;
    /* Adjusted for double logo */
    width: auto;
    /* filter: brightness(0) invert(1); Remove filter if the png is already colored/white */
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

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

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact .contact-item {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.footer-contact .contact-item a {
    color: #e0e0e0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .values-container {
        grid-template-columns: 1fr;
    }

    .value-heading {
        font-size: 1.2rem;
    }

    .value-title {
        font-size: 1.8rem;
    }

    .quote-mark {
        font-size: 8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-banner {
        height: auto;
        min-height: 500px;
        padding-top: 100px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .value-content {
        padding: 2.5rem 1.5rem;
        min-height: 300px;
    }

    .value-heading {
        font-size: 1.1rem;
    }

    .value-title {
        font-size: 1.6rem;
    }

    .quote-mark {
        font-size: 6rem;
    }

    .products-qualities {
        font-size: 2rem;
    }

    .footer-slogan {
        font-size: 1.8rem;
    }
}

/* Product Modal */
.product-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;

    /* Centering */
    align-items: center;
    justify-content: center;
}

.product-modal.show {
    display: flex;
    /* Show as flex to center */
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
}

.modal-body {
    padding: 0;
}

.modal-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text-content {
    padding: 2rem;
}

.modal-product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.modal-product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-text);
    margin-bottom: 2rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-image-container {
        height: 200px;
    }

    .modal-text-content {
        padding: 1.5rem;
    }

    .modal-product-title {
        font-size: 1.5rem;
    }
}

/* Contact Section Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: -1;
        /* Text above form on mobile */
        text-align: center;
        padding-top: 0;
    }

    .contact-headline {
        font-size: 2rem;
    }

    .green-underline {
        margin: 1rem auto 0;
    }

    .contact-details {
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-logos {
        justify-content: center;
    }
}

/* Top Bar Styles */
.top-bar {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    padding: 0 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    /* filter: invert(1); */
    /* Make icons white */
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Hero Banner Updates */
.hero-banner {
    transition: background-image 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive Top Bar */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .main-nav {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hamburger Animation */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-container {
        z-index: 1002;
    }
}