/* Modern Design System - FondeTecnoquimicas Style */
:root {
    /* Colors */
    --primary-green: #76c043;
    /* Vibrant Lime - Buttons, Accents */
    --secondary-green: #4CAF50;
    /* Top Bar Background */
    --primary-blue: #004e98;
    /* Corporate Blue - Text, Footer */
    --secondary-blue: #003566;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
    --top-bar-height: 40px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: #65a836;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(118, 192, 67, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.btn-top-bar {
    padding: 5px 15px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-top-bar:hover {
    background: white;
    color: var(--secondary-green);
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-green);
    height: var(--top-bar-height);
    color: white;
    font-size: 0.9rem;
}

.top-bar .container {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: white;
    margin-left: 10px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Header & Mega Menu */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    padding: 10px 0;
    display: block;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link i {
    font-size: 0.8em;
    margin-left: 3px;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 600px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    z-index: 1001;
    border-top: 4px solid var(--primary-green);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-size: 1rem;
    text-transform: uppercase;
}

.mega-menu ul li {
    margin-bottom: 10px;
}

.mega-menu ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.mega-menu ul li a::before {
    content: '\f054';
    /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7em;
    color: var(--primary-green);
    margin-right: 8px;
    transition: 0.3s;
}

.mega-menu ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 78, 152, 0.8), rgba(0, 53, 102, 0.9)), url('../images/hero-bg.jpg');
    /* Fallback or gradient */
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-text h1 span {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 90%;
}

/* Credit Simulator */
.simulator-card {
    background: var(--bg-white);
    color: var(--text-main);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-green);
}

.simulator-card h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #f9f9f9;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green);
    background: white;
    outline: none;
}

.result-box {
    background: #e8f5e9;
    /* Light Green bg */
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    text-align: center;
    border: 1px solid #c8e6c9;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Quick Links */
.quick-links {
    padding: 50px 0;
    background: var(--bg-white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
}

.quick-link-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quick-link-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    /* Light Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: 0.3s;
}

.quick-link-item:hover .quick-link-icon {
    background: var(--primary-green);
    color: white;
}

.quick-link-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.service-img {
    height: 220px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    margin-left: 10px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer h4 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e0e0e0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Internal Page Styles */
.page-hero {
    background: var(--primary-blue);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #eee;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: 0.3s;
}

.accordion-header:hover {
    background: #f9f9f9;
    color: var(--primary-green);
}

.accordion-header h3 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.accordion-header:hover h3 {
    color: var(--primary-green);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fcfcfc;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid #eee;
}

/* Agreement Section Styles */
.agreement-section {
    padding: 70px 0;
    border-bottom: 1px solid #eee;
}

.agreement-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.agreement-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-green);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-green);
}

.partner-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .simulator-card {
        margin-top: 40px;
    }

    .top-bar .container {
        justify-content: center;
    }
}/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 90%;
    animation: slideDown 0.4s;
}

.modal-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-green);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Slider */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid white;
}

.slider-dot.active {
    background: var(--primary-green);
    width: 35px;
    border-radius: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary-green);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}
