/* ================================================
   GestionMed - Estilos Globales
   Mediterráneo Global Services
   ================================================ */

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3d5c;
    --secondary: #e67e22;
    --secondary-light: #f39c12;
    --accent: #27ae60;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --gray-50: #f8f9fa;
    --gray-100: #ecf0f1;
    --gray-200: #dce1e3;
    --gray-300: #bdc3c7;
    --gray-400: #95a5a6;
    --gray-500: #7f8c8d;
    --gray-700: #34495e;
    --gray-800: #2c3e50;
    --gray-900: #1a252f;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--gray-800); line-height: 1.6; background: var(--white); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: var(--shadow); padding: 0 2rem; transition: var(--transition); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-logo span { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; color: var(--gray-700); padding: 0.5rem 0; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }

.btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,82,118,0.3); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }

.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: var(--white); padding: 6rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: rgba(230,126,34,0.1); border-radius: 50%; }
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--secondary-light); }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 400px; }
.hero-card .stat { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-card .stat:last-child { border-bottom: none; }
.hero-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--secondary-light); }
.hero-card .stat-label { font-size: 0.9rem; opacity: 0.8; }

.section { padding: 5rem 2rem; }
.section-dark { background: var(--gray-50); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { color: var(--gray-500); font-size: 1.1rem; }
.container { max-width: 1200px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-100); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--white); }
.service-card h3 { font-size: 1.2rem; color: var(--gray-800); margin-bottom: 0.8rem; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
.contact-info p { color: var(--gray-500); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; color: var(--gray-700); }
.contact-item .icon { width: 40px; height: 40px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--gray-700); font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; transition: var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(41,128,185,0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }

.footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 2rem 1.5rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: var(--white); margin-bottom: 1rem; }
.footer p, .footer a { font-size: 0.9rem; line-height: 1.8; }
.footer a:hover { color: var(--secondary-light); }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--gray-700); transition: var(--transition); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 1rem 2rem; gap: 0.5rem; box-shadow: var(--shadow-lg); }
    .nav-links.active { display: flex; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}
