/* ==========================================================================
   HOJA DE ESTILOS MODERNA - ASOCIACIÓN QUILLA PERÚ
   ========================================================================== */

:root {
  --primary: #183884;        /* Azul Institucional Principal */
  --primary-hover: #122a66;
  --accent: #e30613;         /* Rojo de Acento */
  --accent-hover: #c40410;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

/* RESET GENERAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* CONTENEDORES Y GRID */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* TIPOGRAFÍA & ENCABEZADOS */
h1, h2, h3, h4, h5 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* BOTONES Y COMPONENTES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(24, 56, 132, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* HEADER Y NAVEGACIÓN FLOTANTE */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
}

/* ==========================================
   HERO SECTION (SECCIÓN SUPERIOR AZUL)
   ========================================== */
.hero-section {
  padding: 80px 0;
  background-color: #0b1329 !important; /* Azul oscuro institucional */
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content .badge {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #38bdf8 !important; /* Celeste brillante */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 18px;
  color: #ffffff !important;
}

.hero-content h1 span {
  color: #38bdf8 !important; /* Resalte en celeste */
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1 !important; /* Texto gris claro leíble */
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-buttons .btn-secondary {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-buttons .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 380px;
}

.experience-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.experience-card h4 {
  color: #ffffff !important;
}

.experience-card p {
  color: #cbd5e1 !important;
}

.experience-card .icon {
  font-size: 2rem;
  color: var(--accent);
}

/* TARJETAS Y CONTENIDO */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card .card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(24, 56, 132, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tarjetas de Línea de Trabajo */
.line-card {
  padding: 0;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card-body ul li {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* NOTICIAS & GALERÍA */
.section-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.news-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  border-left: 4px solid var(--accent);
}

.news-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.news-card h4 {
  margin: 6px 0 10px;
  font-size: 1.1rem;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.contact-widget h4 {
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-widget p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* MARQUEE ENLACES DE INTERÉS */
.brands-section {
  padding: 40px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.slider-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.marquee-track img {
  max-height: 45px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.marquee-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 45px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--accent);
}

.footer-links h5 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid, .grid-3, .grid-4, .grid-2-1, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .nav-menu {
    display: none;
  }

  .experience-card {
    left: 10px;
    bottom: -10px;
  }
}

/* ==========================================
   SECCIÓN OBJETIVOS ESTRATÉGICOS
   ========================================== */
.section.bg-dark-blue {
  background-color: #0a183d !important;
}

.section .section-title.text-white h2 {
  color: #ffffff !important;
}

.section .section-title.text-white p {
  color: #cbd5e1 !important;
}

.card.feature-card-dark {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
}

.card.feature-card-dark:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4) !important;
}

.card.feature-card-dark h3 {
  color: #ffffff !important;
}

.card.feature-card-dark p {
  color: #e2e8f0 !important;
}

.card.feature-card-dark .card-icon {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #38bdf8 !important;
}

/* ==========================================
   Estilos Modernos para la sección "Nosotros"
   ========================================== */

/* Hero "Sobre Nosotros" */
.about-hero-section {
	padding: 80px 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-hero-img-box {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(10, 24, 61, 0.15);
	background: #0a183d;
	padding: 10px;
}

.about-hero-img-box img {
	width: 100%;
	border-radius: 15px;
	transition: transform 0.5s ease;
}

.about-hero-img-box:hover img {
	transform: scale(1.03);
}

.about-hero-text .badge-tag {
	display: inline-block;
	background: rgba(252, 2, 84, 0.1);
	color: #fc0254;
	padding: 6px 16px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.about-hero-text h1 {
	font-size: 42px;
	color: #0a183d;
	font-weight: 700;
	margin-bottom: 15px;
}

.about-hero-text .blog-meta {
	display: flex;
	gap: 20px;
	font-size: 14px;
	color: #6a7080;
	margin-bottom: 20px;
}

.about-hero-text .blog-meta strong {
	color: #0a183d;
}

.about-hero-text p {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 30px;
}

/* Tarjetas Misión y Visión */
.mv-section {
	padding: 90px 0;
	background: #ffffff;
}

.mv-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #f0f0f0;
	transition: all 0.3s ease;
	text-align: center;
}

.mv-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(10, 24, 61, 0.12);
	border-color: transparent;
}

.mv-icon-box {
	width: 70px;
	height: 70px;
	background: #0a183d;
	color: #fc0254;
	font-size: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px auto;
	transition: all 0.3s ease;
}

.mv-card:hover .mv-icon-box {
	background: #fc0254;
	color: #ffffff;
}

.mv-card h3 {
	font-size: 24px;
	color: #0a183d;
	margin-bottom: 15px;
	font-weight: 700;
}

.mv-card p {
	font-size: 15px;
	color: #6a7080;
	line-height: 1.7;
	margin-bottom: 0;
}

/* Sección de Objetivos */
.objectives-section {
	background-color: #0a183d;
}

.objective-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 30px;
	height: 100%;
	position: relative;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.objective-card:hover {
	background: #ffffff;
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.obj-number {
	font-size: 28px;
	font-weight: 800;
	color: #fc0254;
	margin-bottom: 15px;
	font-family: 'Montserrat', sans-serif;
}

.objective-card p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	transition: color 0.3s ease;
}

.objective-card:hover p {
	color: #0a183d;
}