/* 
==============================================
   SINGETEP - Estilos Globales
==============================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores Institucional */
  --primary-blue: #1b365d;
  --secondary-blue: #2a5298;
  --accent-yellow: #f2c94c;
  --accent-yellow-hover: #e0b83e;
  --accent-green: #27ae60;
  
  /* Neutrales */
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
  
  /* Footer */
  --footer-bg: #132646;
  --footer-bottom: #0d1a30;

  /* Sombras y Radios */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transiciones */
  --transition: all 0.3s ease;
  
  /* Tipografía */
  --font-family: 'Inter', sans-serif;
}

/* -------------------------------------------
   Reset & Base
-------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-blue);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-gray);
}
.section-title span {
  color: var(--primary-blue);
}

/* -------------------------------------------
   Botones
-------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
}
.btn-primary:hover {
  background-color: var(--accent-yellow-hover);
  color: var(--text-dark);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}
.btn-secondary:hover {
  background-color: var(--secondary-blue);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}
.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

/* -------------------------------------------
   Top Bar
-------------------------------------------- */
.top-bar {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  color: var(--bg-white);
  font-size: 1rem;
  opacity: 0.8;
}
.social-links a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

/* -------------------------------------------
   Header / Navbar
-------------------------------------------- */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 0.6rem;
  color: var(--text-gray);
  max-width: 250px;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-yellow);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-item.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  padding: 10px 0;
}
.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 5px);
}
.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-blue);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

/* -------------------------------------------
   Hero Banner / Page Header
-------------------------------------------- */
.hero-banner {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(27,54,93,0.9) 0%, rgba(27,54,93,0.6) 50%, rgba(0,0,0,0.1) 100%);
}

.page-header {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(27,54,93,0.4) 0%, rgba(27,54,93,0.9) 100%);
}

.hero-content, .page-header-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
  max-width: 650px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 10px;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* -------------------------------------------
   Footer
-------------------------------------------- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--bg-white);
  padding: 60px 0 0 0;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-title {
  color: var(--bg-white);
}

.footer-brand .brand-subtitle {
  color: rgba(255,255,255,0.7);
}

.footer-brand p {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-yellow);
}

.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer-contact i {
  color: var(--accent-yellow);
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 15px;
}
.footer-social a {
  color: var(--bg-white);
  background: rgba(255,255,255,0.1);
  width: 35px; height: 35px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--accent-yellow);
  color: var(--primary-blue);
}

.footer-bottom {
  background-color: var(--footer-bottom);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------------------------------------------
   Componentes Utilitarios
-------------------------------------------- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.badge-yellow { background: var(--accent-yellow); }
.badge-blue { background: var(--primary-blue); color: white; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* -------------------------------------------
   Media Queries
-------------------------------------------- */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 576px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
