:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --border-color: #334155;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --neutral: #64748b;
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    min-height: 100vh;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../rodrigo-arteaga-webnart.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.container { 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    margin-bottom: 0.5rem; 
    letter-spacing: -1px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

h1 span { 
    color: var(--primary); 
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* SEARCH BOX */
.search-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .search-wrap {
        flex-direction: row;
    }
}

.search-box { 
    flex-grow: 1;
    width: 100%;
    background: rgba(30, 41, 59, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 50px; 
    padding: 5px 25px; 
    transition: all 0.3s ease; 
}

.search-box:focus-within { 
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); 
}

input[type="text"] { 
    border: none; 
    background: transparent;
    outline: none; 
    width: 100%; 
    padding: 16px 0; 
    font-size: 1.1rem; 
    color: var(--text-color);
}

input[type="text"]::placeholder {
    color: #94a3b8;
}

.btn-primary { 
    background-color: var(--primary); 
    border: none; 
    border-radius: 50px; 
    color: white; 
    cursor: pointer; 
    font-size: 1.05rem;
    font-weight: 600;
    padding: 18px 36px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-primary { width: auto; }
}

.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* CONTENT SECTION */
.content-section {
    padding: 2rem 20px 4rem 20px;
    position: relative;
    z-index: 10;
}

#resultados { 
    display: none; 
    animation: fadeIn 0.5s ease backwards;
}

#resultados h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

/* RESULTS GRID */
.grid-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card { 
    background-color: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 24px; 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.card h3 { 
    margin-top: 0; 
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.card p strong {
    color: white;
}

.ley-box { 
    background-color: rgba(59, 130, 246, 0.1); 
    padding: 1rem; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    border-left: 4px solid var(--primary); 
    margin: 1rem 0; 
    color: #e2e8f0;
}

.ley-box b {
    color: white;
}

.disclaimer { 
    font-size: 0.95rem; 
    color: #94a3b8; 
    margin-top: 3rem; 
    text-align: left; 
    font-style: italic; 
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border-left: 4px solid var(--neutral);
    line-height: 1.6;
}

/* CTA BOX */
.cta-box { 
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border-radius: 20px; 
    padding: 40px 30px; 
    margin-top: 2rem; 
    text-align: left; 
}

.cta-box p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cta-box p strong {
    color: white;
}

.cta-box ul {
    margin-top: 1rem;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-box ul b {
    color: white;
}

.btn-secondary { 
    display: inline-block;
    margin-top: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* SPINNER */
.spinner { 
    display: none; 
    margin: 40px auto; 
    border: 4px solid rgba(59, 130, 246, 0.2); 
    border-top: 4px solid var(--primary); 
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    animation: spin 1s linear infinite; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
