# Primero, asegurarnos de que la carpeta css existe y tiene el archivo global
mkdir -p /var/www/costablancasa/css

cat > /var/www/costablancasa/css/global.css << 'EOF'
:root {
    --primary: #0099cc;
    --primary-dark: #0077aa;
    --accent: #00b4d8;
    --accent-light: #48cae4;
    --text: #1a2a3a;
    --text-light: #6c757d;
    --bg-light: #f0f7fa;
    --bg-dark: #0a2a3a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,153,204,0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,153,204,0.2);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 100%), url('https://images.pexels.com/photos/2581922/pexels-photo-2581922.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 1rem 4rem;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; animation: fadeInUp 0.8s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.95); margin-bottom: 2rem; }

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,153,204,0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-light); }
.section-title { font-size: 2.2rem; margin-bottom: 1rem; text-align: center; color: var(--primary); }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 3rem; font-size: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,153,204,0.1);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { color: var(--text-light); font-size: 0.9rem; }

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer h4 { color: white; margin-bottom: 1rem; }
.footer a { color: var(--text-light); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; }

@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .btn-outline { margin-left: 0; margin-top: 1rem; display: inline-block; }
}
EOF