/* Modern Design System - Foro Amigos de Cariló */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-green: #E65000;
    --primary-blue: #2E86C1;
    --primary-yellow: #FFC300;
    --white: #FFFFFF;
    --light-gray: #F4F4F4;
    --text-dark: #333333;
    --text-light: #666666;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-green);
}

h2 {
    font-size: 2rem;
    color: var(--primary-green);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--primary-yellow);
    color: var(--primary-green);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo */
}

.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-link {
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(230, 80, 0, 0.8), rgba(46, 134, 193, 0.8)), url('../images/entrada1.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    /* Subtle curve if desired, or just straight */
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

/* Features / Icons */
.features {
    background-color: var(--light-gray);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    border-bottom: 4px solid #999;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
}

/* Content Sections */
.content-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .content-block {
        flex-direction: row;
        align-items: center;
    }

    .content-block.reverse {
        flex-direction: row-reverse;
    }

    .content-text {
        flex: 1;
    }

    .content-image {
        flex: 1;
    }
}

.content-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--white);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

/* Search Bar (from kit) */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: var(--radius-full);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--white);
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: var(--spacing-sm) 0;
        border-top: 1px solid var(--light-gray);
        margin-top: var(--spacing-sm);
        text-align: center;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}