/* ==========================================
   EL CENTINELA - ESTILOS BASE
   Paleta: #0D1B2A | #00203F | #E6D7B8 | #C8B28C | #A08860
   ========================================== */

:root {
  /* Colores principales */
  --azul: #0D1B2A;
  --azul-profundo: #00203F;
  --arena: #E6D7B8;
  --dorado-start: #C8B28C;
  --dorado-end: #A08860;
  --dorado-muted: #B8A080;
  --dorado-light: #D4C5A0;
  
  /* Neutros */
  --blanco: #FFFFFF;
  --gris-claro: #f9f9f9;
  --texto: #333333;
  
  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 8px 40px rgba(13, 27, 42, 0.16);
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 50px; /* Píldora */
  padding: 14px 32px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.75rem;
}

.btn--large {
  padding: 18px 44px;
  font-size: 1rem;
}

/* Primarios - Degradado Dorado */
.btn--primary {
  background: linear-gradient(135deg, var(--dorado-start), var(--dorado-end));
  color: var(--azul);
  box-shadow: 0 4px 16px rgba(192, 170, 130, 0.35);
}

.btn--primary:hover {
  background: var(--azul);
  color: var(--arena);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.3);
}

/* Primarios Light - Azul sobre fondo claro */
.btn--primary-light {
  background: var(--azul);
  color: var(--blanco);
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.2);
}

.btn--primary-light:hover {
  background: var(--azul-profundo);
  color: var(--arena);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 32, 63, 0.35);
}

/* Outline - para enlaces secundarios */
.btn--outline {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}

.btn--outline:hover {
  background: var(--azul);
  color: var(--blanco);
  transform: translateY(-3px);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  background: var(--blanco);
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto);
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--azul);
}

.nav a.active {
  color: var(--azul);
  font-weight: 600;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--dorado-start), var(--dorado-end));
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--azul);
  cursor: pointer;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--azul);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(0, 32, 63, 0.70) 100%),
    url('img/hero-bg.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.hero__content {
  max-width: 720px;
  color: var(--blanco);
}

.hero__badge {
  display: inline-block;
  background: rgba(230, 215, 184, 0.15);
  color: var(--arena);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  border: 1px solid rgba(230, 215, 184, 0.2);
}

.hero__title {
  font-family: var(--font-sans);  /* Cambiado de var(--font-serif) a var(--font-sans) */
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title .highlight {
  color: var(--arena);
}

.hero__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
.section {
  padding: 80px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-sans);  /* Cambiado de var(--font-serif) a var(--font-sans) */
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__title .highlight-dark {
  color: var(--azul-profundo);
}

.section__subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

/* ==========================================
   ABOUT HOME
   ========================================== */
.about-home {
  background: var(--gris-claro);
}

.about-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-home__image img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ==========================================
   SERVICES HOME
   ========================================== */
.services-home {
  background: var(--blanco);
}

.services-home__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--blanco);
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--dorado-light);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dorado-start), var(--dorado-end));
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--azul);
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-sans);  /* Cambiado de var(--font-serif) a var(--font-sans) */
  font-size: 1.25rem;
  color: var(--azul);
  margin-bottom: 12px;
}

.service-card__description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.link-arrow {
  font-weight: 600;
  color: var(--azul);
  transition: color 0.3s ease;
}

.link-arrow:hover {
  color: var(--dorado-end);
}

.services-home__cta {
  text-align: center;
}

/* ==========================================
   CTA SECTION (Fondo Arena)
   ========================================== */
.cta-section {
  background: var(--arena);
  text-align: center;
  padding: 80px 0;
}

.cta-section__title {
  font-family: var(--font-sans);  /* Cambiado de var(--font-serif) a var(--font-sans) */
  font-size: 2.5rem;
  color: var(--azul);
  margin-bottom: 16px;
}
.cta-section__title .highlight-dark {
  color: var(--azul-profundo);
}

.cta-section__description {
  font-size: 1.1rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--azul);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand .logo img {
  max-height: 44px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--arena);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__nav h4,
.footer__contact h4 {
  color: var(--blanco);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer__nav a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--arena);
}

.footer__contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer__contact a:hover {
  color: var(--arena);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dorado-start), var(--dorado-end));
  color: var(--azul);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: var(--azul-profundo);
  color: var(--arena);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 32, 63, 0.3);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer__bottom a:hover {
  color: var(--arena);
}

.footer__bottom .sep {
  margin: 0 12px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-home__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-home__image img {
    height: 300px;
  }
  
  .services-home__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
    box-shadow: var(--shadow-md);
  }
  
  .nav.nav--open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .hero__description {
    font-size: 1rem;
  }
  
  .section__title {
    font-size: 2rem;
  }
  
  .services-home__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 48px;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .cta-section__title {
    font-size: 2rem;
  }
  
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }
  
  .hero__badge {
    font-size: 0.6rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
  
  .btn--large {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}
/* ==========================================
   NOSOTROS.HTML - ESTILOS ESPECÍFICOS
   ========================================== */

/* PAGE HEADER */
.page-header {
  background: var(--azul);
  color: var(--blanco);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(230, 215, 184, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.page-header__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-header__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--arena);
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(230, 215, 184, 0.2);
  padding: 4px 16px;
  border-radius: 50px;
}

.page-header__title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-header__title .highlight {
  color: var(--arena);
}

.page-header__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* VALUES SECTION */
.values-section {
  background: var(--gris-claro);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--blanco);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 27, 42, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--dorado-light);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dorado-start), var(--dorado-end));
  border-radius: 50%;
  font-size: 1.6rem;
  color: var(--azul);
}

.value-card__title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--azul);
  margin-bottom: 12px;
}

.value-card__description {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

.value-card__description strong {
  color: var(--azul);
}

/* TEAM SECTION */
.team-section {
  background: var(--blanco);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 27, 42, 0.06);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--dorado-light);
}

.team-card__image {
  overflow: hidden;
  background: var(--arena);
}

.team-card__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__image img {
  transform: scale(1.03);
}

.team-card__body {
  padding: 24px 28px 28px;
  text-align: center;
}

.team-card__name {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--azul);
  margin-bottom: 4px;
}

.team-card__role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dorado-muted);
  margin-bottom: 12px;
}

.team-card__description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-card__social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-card__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gris-claro);
  color: var(--azul);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.team-card__social a:hover {
  background: linear-gradient(135deg, var(--dorado-start), var(--dorado-end));
  color: var(--azul);
  transform: translateY(-2px);
}

/* TIMELINE */
.timeline-section {
  background: var(--gris-claro);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--dorado-start), var(--dorado-end));
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blanco);
  border: 3px solid var(--dorado-end);
  box-shadow: 0 0 0 4px var(--arena);
}

.timeline__year {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--azul-profundo);
  margin-bottom: 4px;
}

.timeline__content {
  background: var(--blanco);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 27, 42, 0.06);
}

.timeline__title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--azul);
  margin-bottom: 6px;
}

.timeline__description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================
   RESPONSIVE NOSOTROS
   ========================================== */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header__title {
    font-size: 2.2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .timeline {
    padding-left: 24px;
  }
  
  .timeline::before {
    left: 6px;
  }
  
  .timeline__item {
    padding-left: 24px;
  }
  
  .timeline__item::before {
    left: -24px;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 60px 0 40px;
  }
  
  .page-header__title {
    font-size: 1.8rem;
  }
  
  .page-header__description {
    font-size: 1rem;
  }
  
  .team-card__image img {
    height: 240px;
  }
}
