:root {
    --bg-color: #f5f5f7; /* Apple gray */
    --text-main: #1d1d1f;
    --text-light: #86868b;
    --primary: #0071e3; /* Apple blue */
    --primary-hover: #0077ed;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 18px 50px -10px rgba(0, 0, 0, 0.1);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Navegación Glassmorphism --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo .dot { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links .btn-primary {
    background: var(--text-main);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: transform 0.2s;
}
.nav-links .btn-primary:hover { transform: scale(1.05); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1552422535-c45813c61732?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-glass:hover { background: rgba(255,255,255,0.4); }

.btn-solid {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

/* --- Cards & Grid --- */
.section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 3rem; font-weight: 700; text-align: center; letter-spacing: -1px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 4rem; font-size: 1.2rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.15);
}

.icon-box { font-size: 3rem; margin-bottom: 1rem; }

/* --- Forms & Inputs (Floating Labels) --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.dark-bg { background: #111; color: white; }

.glass-panel {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.input-group { position: relative; margin-bottom: 1.5rem; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #888;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    background: #111;
    padding: 0 5px;
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Mapa --- */
.map-frame iframe { border-radius: 20px; filter: grayscale(20%); transition: filter 0.3s; }
.map-frame iframe:hover { filter: grayscale(0%); }

/* --- Animaciones --- */
.fade-in-up { opacity: 0; animation: fadeInUp 1s ease forwards; }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* --- Toast --- */
.toast {
    position: fixed; bottom: 20px; right: 20px; padding: 1rem 2rem;
    border-radius: 12px; color: white; z-index: 2000; animation: fadeInUp 0.5s;
}
.toast.success { background: #34c759; }
.toast.error { background: #ff3b30; }

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplificado para demo, aquí iría el menú JS */
    .hero h1 { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}