/* ===== VARIABLES GENERALES ===== */
:root {
  --blanco: #ffffff;
  --negro: #000000;
  --carmesi: #a10e23;
  --gris-claro: #f5f5f5;
  --gris-oscuro: #333333; 
  --azul-profesional: #154C68;
  --dorado: #f39c12;
  --dorado-brillante: #ffcc00;
  --fuente: 'Roboto', sans-serif;
}

/* ===== RESET Y TIPOGRAFÍA ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--fuente);
  transition: all 0.3s ease-in-out;
}

body {
  background-color: var(--blanco);
  color: var(--negro);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--negro);
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 30px;
  font-size: 14px;
  z-index: 1100;
}

.top-bar a {
  color: var(--blanco);
  margin-left: 8px;
}

.top-bar a:hover {
  color: var(--carmesi);
}

/* ===== MINI LOGO flotante (oculto por defecto) ===== */
.mini-logo {
  position: fixed;
  top: 4px; /* más cercano al borde superior */
  left: 15px;
  height: 32px; /* más pequeño para que quepa en la banda */
  z-index: 10001; /* ligeramente por encima de la banda negra */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mini-logo img {
  height: 70px;
  width: auto;
}

.mini-logo.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.1); /* azul corporativo con 85% de opacidad */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: transform 0.4s ease, background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

header.hide-header {
  transform: translateY(-100%);
}

/* Contenedor flex para logo y menú */
.nav-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

/* Logo */
.logo {
  flex: 1;
  text-align: LEFT;
}

.logo img {
  height: 110px;
  width: auto;
  transition: transform 0.4s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Menú desktop */
nav.nav-center ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav.nav-center ul li a {
  color: var(--azul-profesional);
  font-weight: 600;
  padding: 8px 0;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav.nav-center ul li a:hover {
  color: var(--carmesi);
}

/* ===== MAIN ===== */
main {
  padding-top: 200px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== COLUMNAS ===== */
.columnas-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 0 1rem;
  margin: 3rem auto;
}

.columna {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.columna:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icono-columna {
  background: var(--azul-profesional);
  color: white;
  font-size: 2.5rem;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  border-top: 4px solid var(--azul-profesional);
}

.columna h3 {
  color: var(--carmesi);
  font-size: 1.3rem;
  margin: 0.5rem 1rem;
}

.columna p {
  color: var(--gris-oscuro);
  padding: 0 0.5rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;  /* 👈 Evita que las palabras largas desborden */
  line-height: 1,5;
  word-spacing: 0.07em;
  max-width: 80%;
  margin: 0 auto 1rem;
  orphans: 2;
  widows: 2;
}


.columna {
  max-width: 320px;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--azul-profesional);
  color: white;
  padding: 2rem 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-divider-container {
  display: flex;
  align-items: center;
  margin-right: 25px;
  padding-left: 5px;
}

.footer-logo-002 {
  width: 180px;
  height: auto;
  margin-left: -50px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.footer-logo-002:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.vertical-divider {
  height: 140px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-left: 10px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  padding: 0 15px;
  text-align: left;
}

.footer-column h3 {
  color: var(--dorado);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
  font-size: 1.2rem; /* o el tamaño que prefieras */

}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--dorado);
}

.footer-column h3:hover {
  color: var(--dorado-brillante);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.contact-info p {
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 12px;
  font-size: 1.2rem;
  color: var(--gris-claro);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--gris-claro);
}

.copyright {
  text-align: center;
  padding: 20px;
  background-color: var(--azul-profesional);
  margin-top: 40px;
}

.justified-text {
  text-align: justify;
  line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .columnas-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 320px;
  }

  .columnas-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
  }

  .logo-divider-container {
    display: none;
  }

  .footer-column {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .vertical-divider {
    height: 1px;
    width: 80%;
    margin: 10px auto;
  }

  /* Mostrar botón hamburguesa móvil */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--azul-profesional);
  }

  nav.nav-center {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blanco);
    display: none;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  nav.nav-center.active {
    display: flex;
  }

  nav.nav-center ul {
    flex-direction: column;
    gap: 0;
  }

  nav.nav-center ul li a {
    padding: 1rem;
    display: block;
    border-bottom: 1px solid #ddd;
  }
}

@media (max-width: 576px) {
  .top-bar {
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem 1rem;
  }

  header {
    top: 60px;
  }

  main {
    padding-top: 50px;
  }
}

.banda-superior {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #134C68;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contenido-barra {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: center; /* centramos horizontalmente */
  align-items: center;
  position: relative;
}


.boton-canvas {
  background-color: var(--dorado);
  color: var(--negro);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-left: auto; /* empuja el botón completamente a la derecha */
}

.boton-canvas:hover {
  background-color: var(--dorado-brillante);
  color: var(--negro);
}
.texto-barra {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-right: auto; /* lo empuja hacia la izquierda */
  margin-left: auto;  /* lo empuja hacia la derecha */
  text-align: center;
}



#frase-dia {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  flex: 1;
}



header {
  top: 60px; /* o igual al alto de tu banda, ajústalo si cambias padding */
}

/* ===== formulario mejorado con colores corporativos ===== */

.bienvenida-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--gris-claro);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 1.1rem;
  color: var(--gris-oscuro);
}

.bienvenida-texto {
  flex: 1 1 45%;
  font-size: 1.1rem;
  font-family: 'Dancing Script', cursive;
  color: var(--azul-profesional);
  padding-top: 2.5rem; /* 👈 Aquí el ajuste */
}



.bienvenida-texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bienvenida-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Formulario con marco y colores corporativos */
.formulario-contacto {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--blanco);
  border: 2px solid var(--azul-profesional);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(21, 76, 104, 0.2);
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--azul-profesional);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--fuente);
  transition: border-color 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 8px var(--dorado-brillante);
}

.formulario-contacto button {
  background-color: var(--dorado);
  color: var(--negro);
  font-weight: bold;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.1rem;
}

.formulario-contacto button:hover {
  background-color: var(--dorado-brillante);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .bienvenida-contacto {
    flex-direction: column;
  }

  .bienvenida-texto,
  .formulario-contacto {
    flex: 1 1 100%;
  }
}
