/* === CONFIGURACIÓN GENERAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --azul: #0099cc;
  --azul-oscuro: #003865;
  --azul-medio: #006fa4;

  /* Usamos tu azul corporativo */
  --color-primary: var(--azul-oscuro);
}

body {
  font-family: "Inter", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* =====================================
   HEADER
===================================== */
.header {
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #e6e6e6;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center; 
  gap: 0.5rem; 
}

.logo-img {
  max-width: 80px;
  height: auto;
  border-radius: 50px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #454545;
  font-weight: 500;
}

.header-item {
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.header-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--azul-oscuro);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-item:hover {
  color: var(--azul-oscuro);
}

.header-item:hover::after {
  width: 100%;
}

/* BOTÓN LOGIN */
.btn {
  background: black;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--azul-oscuro);
}

.btn-contacto{
  text-decoration: none;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO CONTACTO === */
.about-hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(to bottom, #eef4f7, #ffffff); /* Gris del diseño original */
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.about-hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.btn-contacto {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--azul-oscuro);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-contacto:hover {
  background: var(--azul);
}

/* === GRID PRINCIPAL === */
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* === CARD GENERAL === */
.card {
  background: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === FORMULARIO === */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* === BOTÓN PRINCIPAL (ENVIAR MENSAJE) === */
.btn-em {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: var(--azul-medio);
}

/* === FLASH CARDS (TELÉFONO, CORREOS, SEDES) === */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.flash {
  padding: 1rem;
  text-align: center;
}

.badge-num {
  background: var(--color-primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* === MAPAS === */
.map {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
}

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar a {
  text-decoration: none;
  color: var(--color-primary);
}

.socials a {
  margin-right: 10px;
  font-size: 1.4rem;
  color: #444;
  transition: 0.3s;
}

.socials a:hover {
  color: var(--azul);
}

/* === CARRUSEL VERTICAL === */
.vertical-carousel-auto {
  overflow: hidden;
  height: 350px;
  border-radius: 10px;
  margin-top: 1rem;
}

.vc-track {
  display: flex;
  flex-direction: column;
  animation: scroll-vertical 25s linear infinite;
}

.vc-track img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* === FOOTER === */
footer {
  background: #111;
  color: white;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .flash-grid {
    grid-template-columns: 1fr;
  }
}
