/* VARIABLES Y RESET */
:root {
    --primary: #007cba;
    --secondary: #005a87;
    --dark: #333333;
    --light: #f4f7f6;
    --white: #ffffff;
    --text: #4b4f58;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); line-height: 1.7; background: var(--white); }
.container { width: 90%; max-width: 1200px; margin: auto; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; } .mt-50 { margin-top: 50px; } .mb-20 { margin-bottom: 20px; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; align-items: start; }

/* TIPOGRAFÍA */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; margin-bottom: 15px; line-height: 1.3; }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); }
h1 { font-size: 3rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.5rem; }
p { margin-bottom: 15px; }
.subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;}

/* NAVBAR */
.navbar { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.flex-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: 300; color: var(--dark); display: flex; align-items: center; text-decoration: none;}
.logo strong { color: var(--primary); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-top: 10px;}
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 5px; }

/* HERO BANNERS */
.hero { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/fondo.jpg'); background-size: cover; background-position: center; padding: 120px 0; text-align: center; color: var(--white); }
.hero-page { padding: 80px 0; text-align: left; }
.hero h1, .hero-page h1 { color: var(--white); max-width: 800px; margin: 0 auto 20px; }
.hero-page h1 { margin: 0; }
.hero p, .hero-page p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }
.hero-page p { margin: 0; margin-top: 15px;}
.btn-main { background: var(--primary); color: var(--white); padding: 15px 35px; text-decoration: none; font-size: 1.1rem; font-weight: 700; border-radius: 5px; display: inline-block; transition: 0.3s; }
.btn-main:hover { background: var(--secondary); transform: translateY(-2px); }

/* TARJETAS */
.card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border-top: 4px solid transparent; }
.card:hover { transform: translateY(-5px); border-top-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.card img { max-width: 100%; border-radius: 10px; margin-bottom: 15px; }

/* LISTAS Y FORMULARIOS */
.custom-list { padding-left: 20px; margin-bottom: 20px; }
.custom-list li { margin-bottom: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.contact-form button { border: none; cursor: pointer; }
.contact-info p { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.contact-info i { color: var(--primary); width: 20px; }

/* WHATSAPP Y FOOTER */
.wa-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; text-decoration: none; transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }
footer { background: #1a1a1a; color: #888; text-align: center; padding: 20px 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
}