/* Reset y Fuente Moderna */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; scroll-behavior: smooth; }

body { background-color: #f4f7f6; color: #333; }

/* CONTENEDORES GENÉRICOS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: #f9fafb; }
.section-block { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: #111; font-weight: 700; }
.title-underline { width: 60px; height: 4px; background: #F0C419; margin: 15px auto 0; border-radius: 5px; }
.highlight-text { color: #F0C419; }

/* ==========================================
   NAVBAR (Nuevo para Landing Page)
   ========================================== */
.navbar { background: #ffffff; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand-logo { max-height: 40px; }
.nav-brand-name { font-size: 1.5rem; font-weight: 700; color: #111; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #F0C419; }
.btn-nav-login { background: #111; color: #fff !important; padding: 8px 20px; border-radius: 20px; transition: 0.3s !important; }
.btn-nav-login:hover { background: #333; transform: scale(1.05); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; color: #fff; padding: 150px 20px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #f0f0f0; }
.btn-hero { background: #F0C419; color: #111; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 30px; font-size: 1rem; transition: 0.3s; display: inline-block; }
.btn-hero:hover { background: #d4ac16; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(240, 196, 25, 0.4); }

/* ==========================================
   MISIÓN Y VISIÓN
   ========================================== */
.mision-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { background: #fff; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s; }
.mv-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-bottom: 4px solid #F0C419; }
.mv-icon { color: #F0C419; font-size: 2.5rem; margin-bottom: 15px; }
.mv-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: #111; }
.mv-card p { color: #555; line-height: 1.6; }

/* ==========================================
   CONTACTO
   ========================================== */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.contact-item { background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; border: 1px solid #eee; }
.contact-item:hover { border-color: #F0C419; }
.contact-item i { font-size: 2rem; color: #F0C419; margin-bottom: 15px; }
.contact-item h4 { margin-bottom: 8px; color: #111; }
.contact-item a { color: #333; text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: #F0C419; }

/* ==========================================
   TARJETAS DE SERVICIOS Y CATEGORÍAS (Compartido)
   ========================================== */
.category-section { margin-bottom: 60px; }
.category-title { font-size: 1.8rem; font-weight: 600; color: #222; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.category-title i { color: #F0C419; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.service-card { 
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5); padding: 30px 25px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); text-decoration: none; color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background-color: #F0C419; transition: height 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); background: #ffffff; border-color: #F0C419; }
.service-card.static-card { cursor: default; }
.service-card.static-card:hover::before { height: 100%; }

.card-icon { font-size: 2.5rem; margin-bottom: 15px; color: #111; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 0.95rem; color: #666; line-height: 1.5; margin-bottom: 20px; }
.card-cta { display: inline-block; font-weight: 600; color: #111; border-bottom: 2px solid #F0C419; padding-bottom: 2px; }

/* ==========================================
   ESTILOS DEL LOGIN (Dashboard)
   ========================================== */
.back-to-home { display: block; color: #666; text-decoration: none; font-size: 0.9rem; margin-bottom: 15px; transition: 0.3s; }
.back-to-home:hover { color: #F0C419; }
.back-to-home-dash { text-decoration: none; color: #888; font-size: 0.9rem; position: absolute; left: 20px; top: 20px; transition: 0.3s; }
.back-to-home-dash:hover { color: #F0C419; }
.login-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; height: 100vh; background: #f4f7f6; }
.login-box { background: #ffffff; padding: 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; border: 1px solid rgba(0,0,0,0.05); }
.logo-login { margin-bottom: 30px; }
.brand-logo-small { max-width: 80px; margin-bottom: 10px; }
.logo-login h2 { font-size: 1.5rem; color: #111; }
.input-group { position: relative; margin-bottom: 20px; text-align: left; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #999; }
.input-group input { width: 100%; padding: 12px 12px 12px 45px; border: 1px solid #e1e1e1; border-radius: 10px; font-size: 1rem; outline: none; transition: border 0.3s ease; }
.input-group input:focus { border-color: #F0C419; }
#login-btn { width: 100%; padding: 12px; background-color: #111; color: white; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s ease; }
#login-btn:hover { background-color: #333; }
.error-msg { color: #e74c3c; font-size: 0.9rem; margin-top: 15px; min-height: 20px; }

/* ==========================================
   DASHBOARD PRIVADO
   ========================================== */
.dashboard-wrapper { width: 100%; max-width: 1200px; padding: 0 20px; display: flex; flex-direction: column; min-height: 100vh; margin: 0 auto; }
.main-header { width: 100%; padding: 40px 20px 20px; text-align: center; position: relative; }
.header-actions { position: absolute; top: 40px; right: 20px; display: flex; align-items: center; gap: 15px; }
.user-welcome { font-weight: 600; color: #111; }
.btn-logout { background: none; border: 1px solid #ddd; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; color: #333; transition: all 0.3s ease; }
.btn-logout:hover { background: #ffebee; border-color: #e74c3c; color: #e74c3c; }
.logo-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; position: relative; }
.brand-logo { max-width: 180px; height: auto; display: block; }
.subtitle { color: #666; font-size: 1.1rem; margin-top: 5px; }

/* ==========================================
   ADMIN & MODALES
   ========================================== */
.btn-admin { background: #111; color: #F0C419; border: 2px solid #F0C419; padding: 10px 20px; border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: 0.3s; }
.btn-admin:hover { background: #F0C419; color: #111; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.modal-content { background: #fff; border-radius: 20px; padding: 30px; width: 90%; max-width: 700px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-small { max-width: 500px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.modal-header h2 { margin: 0; color: #111; }
.btn-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #999; }
.btn-close:hover { color: #e74c3c; }
.admin-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; background: #f9f9f9; transition: 0.2s; }
.admin-item:hover { background: #f0f0f0; border-color: #F0C419; }
.admin-info { flex: 1; }
.admin-actions button { background: none; border: none; padding: 8px; cursor: pointer; font-size: 1.1rem; margin-left: 5px; border-radius: 5px; transition: 0.2s; }
.btn-edit { color: #3498db; } .btn-edit:hover { background: #eaf2f8; }
.btn-delete { color: #e74c3c; } .btn-delete:hover { background: #fdedec; }
.btn-add-new { width: 100%; padding: 15px; background: #F0C419; color: #111; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 15px; transition: 0.3s; }
.btn-add-new:hover { background: #d4ac16; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #333; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.btn-save { width: 100%; padding: 12px; background: #111; color: #fff; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.btn-save:hover { background: #333; }

/* ==========================================
   FOOTER COMPARTIDO
   ========================================== */
.main-footer { background-color: #111; color: #ccc; padding: 40px 20px; width: 100%; margin-top: 60px; border-top: 4px solid #F0C419; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.main-footer p { margin: 5px 0; font-size: 0.95rem; line-height: 1.6; }
.developer-credits { margin-top: 5px; font-size: 1rem; color: #F0C419; }
.developer-credits strong { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-top: 10px; border-top: 1px solid #333; padding-top: 20px; width: 100%; }
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: #F0C419; font-size: 1.1rem; }
.footer-contact a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: #F0C419; }

/* ==========================================
   RESPONSIVIDAD
   ========================================== */
@media (max-width: 992px) { .mision-vision-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; padding-top: 20px; gap: 15px; align-items: center; }
    .nav-links.active { display: flex; }
    .header-actions { position: relative; top: 0; right: 0; justify-content: center; margin-top: 15px; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-contact { flex-direction: column; align-items: center; gap: 12px; }
    .contact-info-grid { grid-template-columns: 1fr; }
}