/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --secondary: #74c69d;
    --accent: #d8f3dc;
    --text: #2d3e2b;
    --light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f5f7f0 0%, #e8f0e5 100%);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-auth {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45,106,79,0.3);
}

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1600');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Secciones */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-img {
    flex: 1;
    min-width: 250px;
}

.section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-content {
    flex: 1;
    padding: 2rem;
}

.section-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Publicidad */
.publicidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
}

.publicidad-item {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.publicidad-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.publicidad-item img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.forgot {
    text-align: center;
    margin-top: 1rem;
}

.forgot a {
    color: var(--primary);
    text-decoration: none;
}

/* User menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-name {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    z-index: 100;
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--accent);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #f8f9fa;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-card {
        flex-direction: column;
    }
    
    .hamburger {
        display: flex;
    }
}

/* SweetAlert fix */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup {
    z-index: 100000 !important;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}