/* Reset y Variables Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #27AE60;
    --primary-dark: #1E8449;
    --primary-light: #52BE80;
    --secondary-yellow: #F39C12;
    --accent-brown: #7D6608;
    --gray-dark: #2C3E50;
    --gray-medium: #7F8C8D;
    --gray-light: #ECF0F1;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header / Navbar */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 10px 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--gray-light);
    color: var(--primary-green);
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
}

/* Footer */
.site-footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

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

.footer-column h3,
.footer-column h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p {
    margin-bottom: 10px;
    color: var(--gray-light);
    line-height: 1.6;
}

.footer-column .slogan {
    font-style: italic;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-green);
}

.footer-contact {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--secondary-yellow);
    width: 18px;
    display: inline-block;
}

.footer-contact a {
    color: var(--secondary-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Colores específicos de cada red social en hover */
.footer-social a[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[title="TikTok"]:hover {
    background: #000000;
}

.footer-social a[title="Facebook"]:hover {
    background: #1877f2;
}

.footer-social a[title="YouTube"]:hover {
    background: #ff0000;
}

.footer-social a[title="LinkedIn"]:hover {
    background: #0077b5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-light);
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 15px;
    }

    .nav-dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        transform: none;
    }

    .site-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-medium);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* Rich Text Content */
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.rich-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.rich-text ul,
.rich-text ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.rich-text a {
    color: var(--primary-green);
    text-decoration: underline;
}

.rich-text a:hover {
    color: var(--primary-dark);
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}
