:root {
    --primary: #0a0f1a;
    --accent: #d4af37;
    --accent-dark: #b38e00;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #475569;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* Base & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Outfit', sans-serif; 
    color: var(--text-main); 
    line-height: 1.7; 
    overflow-x: hidden;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

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

/* Typography */
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }

/* Sections */
section { padding: 70px 0; }
.section-light { background-color: var(--bg-light); }
.section-header { margin-bottom: 2.5rem; max-width: 800px; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header */
header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.7rem; font-weight: 800; color: var(--white); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { 
    color: rgba(255,255,255,0.9); 
    font-weight: 600; 
    font-size: 0.95rem;
    position: relative;
}
.nav-links a:hover { color: var(--accent); }

.mobile-menu { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
    height: 100vh;
    min-height: 650px;
    background: url('assets/images/hero_bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Degradado más equilibrado para dar luz al centro */
    background: linear-gradient(rgba(10, 15, 26, 0.8), rgba(10, 15, 26, 0.4));
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    max-width: 900px; 
}

.hero h1 { 
    font-size: clamp(2.8rem, 7vw, 4.8rem); 
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.8rem;
    /* Sombra para que las letras blancas "salten" del fondo */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero h1 span { 
    color: #ffcc33; /* Dorado mucho más brillante y cálido */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero p { 
    color: #f1f5f9; /* Blanco azulado muy claro para máxima legibilidad */
    font-size: 1.3rem; 
    font-weight: 400;
    max-width: 650px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    gap: 0.8rem;
}

.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #f1c40f; transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Badges */
.trust-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-list li i { color: #2ecc71; font-size: 1.2rem; }

.img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--bg-light);
}

/* Partners & Socios Grid */
.partners-grid, .socios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.partner-card, .socio-card {
    background: var(--white);
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.socio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.partner-logo, .socio-icon {
    width: 70px; height: 70px;
    background: var(--bg-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: var(--transition);
}

.socio-card:hover .socio-icon {
    background: var(--accent);
    color: var(--primary);
}

.socio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socio-service {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: block;
}

.socio-manager {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.socio-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.socio-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.socio-contact a:hover {
    color: var(--accent-dark);
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: -2rem auto 2.5rem;
    position: relative;
    z-index: 20;
}

.search-box {
    background: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #f1f5f9;
}

.search-box i {
    color: var(--accent);
    font-size: 1.2rem;
}

.search-box input {
    border: none;
    padding: 0.8rem 0;
    font-size: 1rem;
    width: 100%;
}

.search-box input:focus {
    box-shadow: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.news-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.news-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary);
    /* Limitar a dos líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.news-more:hover {
    color: var(--accent-dark);
}

.news-more:hover i {
    transform: translateX(5px);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.contact-item {
    display: flex; gap: 1.5rem; margin-bottom: 2.5rem;
}

.contact-item i {
    width: 50px; height: 50px;
    background: var(--bg-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.form-group { margin-bottom: 1.8rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }

input, textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.footer ul li { margin-bottom: 0.8rem; }
.footer ul a { color: rgba(255,255,255,0.7); }
.footer ul a:hover { color: var(--accent); padding-left: 5px; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.footer-social a:hover { background: var(--accent); color: var(--primary); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header { padding: 1rem 0; }
    .nav-links {
        display: none;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--primary);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 2rem; z-index: 2000;
    }
    .nav-links.active { display: flex; }
    .mobile-menu { display: block; position: relative; z-index: 2100; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { display: flex; flex-direction: column; gap: 1rem; }
    .btn-outline { margin-left: 0; }
}
