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

:root {
    /* Updated Instagram-inspired Palette */
    --primary: #6D3B51; /* Maroon/Wine */
    --primary-dark: #562E40;
    --primary-light: #8E5A71;
    --secondary: #C1A590; /* Beige/Tan */
    --accent: #E5D5C8;
    --bg-light: #FCF8F5; /* Warm Off-white */
    --text-main: #2D2424;
    --text-muted: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(193, 165, 144, 0.2);
    
    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

.animate-fade {
    animation: fadeIn 0.8s forwards;
}

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

section {
    padding: 100px 0;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

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

.nav-links a:hover {
    color: var(--primary);
}

.btn-portal {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-portal:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(163, 112, 247, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #f5edf1 0%, #FCF8F5 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.05;
    top: -100px;
    right: -100px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: white;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f5edf1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-member-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.team-card:hover .profile-circle {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(109, 59, 81, 0.2);
    border-color: var(--accent);
}

.team-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-title {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #1A1616; /* Negro cálido premium para máximo contraste */
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer-brand h2 {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #2D2D2D;
    padding-top: 2rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .logo { font-size: 1.3rem; }
    .nav-links { display: none; } /* Ocultar links en móvil para simplificar */
    
    .hero {
        height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
    }
    
    .hero::before { display: none; }
    
    .hero-content { margin: 0 auto; }
    
    .hero-visual {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        margin-top: 3rem;
        opacity: 1 !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Apilar botones del hero */
    .hero .hero-content div[style*="flex"] {
        flex-direction: column !important;
        align-items: stretch;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand { margin-bottom: 2rem; }
    
    #nosotros .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    #contacto .container > div {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}
