/* 
    Forestal Paraguarí - Unified Global Styles
    Maintains original design and colors, upgraded to be modern and responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #006a39; /* Brand Green */
    --secondary-color: #00522c; /* Darker Green */
    --bg-color: #f4f6f8; /* Soft premium grey background instead of harsh grey */
    --text-color: #2d3748; /* Slate text color for readability */
    --text-muted: #718096;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 106, 57, 0.12), 0 10px 10px -5px rgba(0, 106, 57, 0.04);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1a202c;
}

::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Socials */
.social-header {
    background-color: var(--primary-color);
    padding: 10px 0;
    text-align: right;
}

.social-icons {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 18px;
    margin: 0 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.main-header {
    background-color: var(--bg-color);
    padding: 10px 0;
    text-align: center;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Navbar & Buttons */
.navbar {
    background-color: var(--primary-color);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* Hamburguesa (Sandwich) Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px; /* Bordes redondeados al apoyar el mouse */
}

/* Dropdown Menus (Desplegables) */
.nav-item.has-dropdown {
    position: relative;
}

.nav-link .caret {
    font-size: 9px;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--primary-color);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 22px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    border-left-color: var(--white);
    padding-left: 27px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.main-content {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Common Text Section */
.empresa-texto {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    line-height: 1.8;
    color: #4a5568; /* Soft readable charcoal instead of harsh dark gray */
    text-align: justify;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.empresa-texto:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.imagen-seccion {
    width: 100%;
    display: block;
    margin: 40px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.imagen-seccion:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* Grid Layouts */
/* Grid & Flex Layout Utilities */
.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.flex-row-responsive {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.card-white {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.icon-circle i {
    font-size: 36px;
    color: var(--white);
}

.card-title {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Impacto / Compromiso Row */
.white-row {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.white-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.white-row .image-col { flex: 1; }
.white-row .image-col img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.white-row .text-col {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.white-row .text-col h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
    text-transform: uppercase;
}

/* Bullet Points List */
.bullet-list {
    text-align: left;
    display: inline-block;
    list-style: none;
    padding: 0;
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
}

.bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.bullet-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

/* Gallery Grid (General) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 500px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
}

/* Areas Produccion specific */
.header-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.section-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.section-text-large {
    flex: 1;
    min-width: 300px;
    font-size: 1.4em;
    line-height: 1.6;
    white-space: pre-line;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Styles */
.contact-info-grid {
    margin-bottom: 50px;
    text-align: center;
}

.card-white {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.form-grid-two {
    margin-top: 40px;
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--primary-color); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px;
    font-size: 16px; background-color: #f9f9f9; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; background-color: white; }
.form-group textarea { height: 120px; resize: vertical; }

.map-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
}

.map-wrapper { width: 100%; height: 470px; border-radius: 10px; overflow: hidden; border: 2px solid #eee; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 106, 57, 0.2);
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 106, 57, 0.3);
    border-radius: 25px; /* Bordes más redondeados al apoyar el mouse */
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 15px; /* Bordes redondeados al apoyar el mouse */
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-nav h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 15px;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 13px;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 15px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 24px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.copyright {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 2px;
    }
    .nav-link {
        padding: 8px 10px;
        font-size: 10px;
    }
    .responsive-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .navbar {
        min-height: 50px;
        display: flex;
        align-items: center;
        padding: 5px 0;
    }

    .nav-container {
        width: 100%;
        position: relative;
    }

    /* Hamburger Menu Logic & Premium Button Style */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        padding: 0 !important;
        gap: 4px !important;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

    .menu-toggle:hover,
    .menu-toggle:active {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) scale(1.05);
    }

    .menu-toggle span {
        width: 20px !important;
        height: 2px !important;
        background-color: var(--white) !important;
        transition: var(--transition);
        border-radius: 2px !important;
        transform-origin: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left; /* Align to the left for a cleaner list style in mobile */
        transition: var(--transition);
    }

    .nav-link:hover,
    .nav-link.active {
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.12);
        border-left: 4px solid var(--white);
        padding-left: 16px; /* Offset the 4px border to look perfectly aligned */
    }

    /* Dropdowns on mobile: shown expanded and indented under their parent */
    .nav-item.has-dropdown {
        width: 100%;
    }

    .nav-link .caret {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.18);
    }

    .dropdown-link {
        text-align: left;
        padding: 14px 20px 14px 40px;
        font-size: 13px;
        letter-spacing: 0.5px;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        white-space: normal;
    }

    .dropdown-link:hover,
    .dropdown-link.active {
        background-color: rgba(255, 255, 255, 0.12);
        border-left: 4px solid var(--white);
        padding-left: 36px; /* Offset the 4px border */
    }

    /* Animation for hamburger */
    .menu-toggle.active span:nth-child(1) { 
        transform: translateY(6px) rotate(45deg); 
    }
    .menu-toggle.active span:nth-child(2) { 
        opacity: 0; 
        transform: scale(0);
    }
    .menu-toggle.active span:nth-child(3) { 
        transform: translateY(-6px) rotate(-45deg); 
    }

    .mission-vision-grid, .form-grid-two, .section-flex { grid-template-columns: 1fr; }
    .responsive-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .responsive-grid-2 { grid-template-columns: 1fr; }
    .flex-row-responsive { flex-direction: column; }
    .hero-title { font-size: 2.5em; }
    .white-row { flex-direction: column; }
    .footer-column { flex: 100%; text-align: center; }
    .footer-contact p { 
        display: block !important;
        text-align: center !important;
    }
    .footer-contact i {
        display: inline-block !important;
        margin-right: 8px !important;
        vertical-align: middle !important;
    }
    .social-links { justify-content: center; }
    .section-text-large { font-size: 1.2em; text-align: center; }
    
    /* Layout adjustments for table-based legacy layout */
    .main-content table {
        display: block;
        width: 100% !important;
        border-spacing: 0 !important;
    }
    .main-content tbody, .main-content tr, .main-content td {
        display: block;
        width: 100% !important;
    }
    .main-content td {
        padding: 10px 0 !important;
    }
    
    .card-white, .form-container, .map-card {
        height: auto !important;
        padding: 30px !important;
    }
    
    .gallery-item {
        height: 240px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .gallery-caption {
        padding: 12px 10px !important;
        font-size: 0.9em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .social-header {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    .main-content { margin: 20px auto; }
}

@media screen and (max-width: 800px) {
    .main-content { padding: 0 !important; }
    .responsive-grid-4, .responsive-grid-3 { 
        grid-template-columns: 1fr !important; 
        gap: 10px !important;
        margin: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-title { font-size: 2em; }
    .nav-link { padding: 12px; font-size: 12px; }
    
    .gallery-item {
        height: 420px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
        border-radius: 0 !important;
    }
    
    .gallery-caption {
        padding: 12px 10px !important;
        font-size: 0.85em !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

