@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
}

html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1rem;}
h3 { font-size: 1.25rem; margin-bottom: 0.75rem;}
p { margin-bottom: 1rem; color: var(--text-main); }

/* Header & Nav */
header { 
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 5%;
}

.logo a { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    text-decoration: none; 
    letter-spacing: -0.5px;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: var(--transition); 
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

.menu-btn { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: none; 
    border: none; 
    color: var(--primary-color);
    transition: var(--transition);
}

/* Layout */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 4rem 5%; 
}

/* Hero Section */
.hero { 
    text-align: center; 
    padding: 6rem 5%; 
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%), url('concepcion.jpg') center/cover no-repeat;
    color: var(--white); 
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero p { 
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem; 
    max-width: 800px;
    margin-inline: auto;
}

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem; 
    background-color: var(--accent-color); 
    color: var(--white); 
    text-decoration: none; 
    border-radius: var(--radius-md); 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition); 
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
}

.btn:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline { 
    background-color: transparent; 
    border: 2px solid rgba(255,255,255,0.3); 
    box-shadow: none;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-outline:hover { 
    background-color: var(--white); 
    color: var(--primary-color); 
    border-color: var(--white);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Grid & Cards */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
}

.card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.3);
}

.card img {
    margin: -2rem -2rem 1.5rem -2rem;
    width: calc(100% + 4rem);
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Tables */
table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    margin-top: 2rem; 
    background: var(--white); 
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
th, td { 
    padding: 1rem 1.5rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
}
th { 
    background-color: var(--primary-color); 
    color: var(--white); 
    font-weight: 600;
}
tr:last-child td { border-bottom: none; }

/* Forms */
form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.25rem; 
    width: 100%;
}
input, select, textarea { 
    padding: 1rem; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    font-size: 1rem; 
    background-color: var(--bg-color);
    transition: var(--transition);
    color: var(--text-main);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background-color: var(--white);
}
textarea { resize: vertical; min-height: 120px; }

/* WhatsApp Float */
.whatsapp-float { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    background-color: #25d366; 
    color: white; 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 32px; 
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); 
    z-index: 1000; 
    text-decoration: none; 
    transition: var(--transition);
}
.whatsapp-float:hover { 
    background-color: #128c7e; 
    transform: scale(1.1);
}

/* Footer */
footer { 
    background-color: var(--primary-color); 
    color: var(--text-muted); 
    text-align: center; 
    padding: 4rem 5% 2rem; 
    margin-top: 4rem; 
}
footer strong { color: var(--white); font-size: 1.25rem; display: block; margin-bottom: 1rem;}
footer p { margin-bottom: 0.5rem; }
footer a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem; }
    .menu-btn { display: block; }
    
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        gap: 0;
        padding: 0; 
        text-align: center; 
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        
        /* Animation */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-links.active { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-color);
    }
    .nav-links a::after { display: none; }
    
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .btn { width: 100%; margin-bottom: 1rem; }
    .btn-outline { margin-left: 0; }
    
    .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; font-size: 28px; }
}