/* 
   VidaEco Flexografía - Styles
   Theme: Eco-Premium (Green, Dark Gray, White)
*/

:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #f1c40f;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    padding: 15px 0;
    transition: box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    padding: 10px 25px;
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Advantages Section */
.advantages {
    background-color: var(--white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: #eee;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Sectors Section */
.sectors {
    background-color: #f4f4f4;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.sector-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: 0.3s;
}

.sector-item:hover {
    transform: translateY(-5px);
}

.sector-image {
    flex: 1;
    min-height: 250px;
}

.sector-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sector-info h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--secondary);
    margin-right: 10px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.benefits-mini {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.benefits-mini span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cta-form-card {
    flex: 0 0 400px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--dark);
}

.cta-form-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-col i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .sector-item {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-wrapper {
        flex-direction: column;
    }

    .cta-form-card {
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sector-item {
        flex-direction: column;
    }

    .sector-image {
        min-height: 200px;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: 0.2s;
}

.popup-close:hover {
    color: var(--primary);
}

#popupTitle {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#popupBody {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

#popupBody strong {
    color: var(--primary);
}

.popup-cta {
    width: 100%;
    display: block;
}

/* Hover effects for trigger elements */
.advantage-card,
.sector-item {
    cursor: pointer;
}

/* Popup Images */
.popup-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.popup-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Popup Themes */
.popup-content.theme-blue {
    border-top: 5px solid #3498db;
}

.popup-content.theme-blue #popupTitle {
    color: #3498db;
}

.popup-content.theme-orange {
    border-top: 5px solid #e67e22;
}

.popup-content.theme-orange #popupTitle {
    color: #e67e22;
}

.popup-content.theme-green {
    border-top: 5px solid #27ae60;
}

.popup-content.theme-green #popupTitle {
    color: #27ae60;
}

.popup-content.theme-wine {
    border-top: 5px solid #722f37;
}

.popup-content.theme-wine #popupTitle {
    color: #722f37;
}

.popup-content.theme-slate {
    border-top: 5px solid #7f8c8d;
}

.popup-content.theme-slate #popupTitle {
    color: #7f8c8d;
}

.popup-content.theme-teal {
    border-top: 5px solid #16a085;
}

.popup-content.theme-teal #popupTitle {
    color: #16a085;
}

.popup-content.theme-pink {
    border-top: 5px solid #e84393;
}

.popup-content.theme-pink #popupTitle {
    color: #e84393;
}
/* Mobile Menu Fix - Override */
@media (max-width: 768px) {
    .nav-links { z-index: 999 !important; }
    .nav-links.active { display: flex !important; }
    .cta-form-card { width: 100% !important; }
    .mobile-menu-btn { display: block !important; }
}
