:root {
  /* 🎨 Colores principales */
  --color-primario: #0e217c;   /* azul corporativo */
  --color-secundario: #33a34d;    /* rojo */
  --color-Amarillo: #f8b318;      /* texto principal */
  --color-blanco: #ffffff;
  --color-negro: #1a1a1a;

  /* 🖋 Tipografía */
  --fuente-general: 'Poppins', Arial, sans-serif;

  /* Tamaños de texto */
  --texto-base: 1rem;
  --texto-pequeño: 0.9rem;
  --texto-grande: 1.2rem;
  --titulo-seccion: 2rem;
  --titulo-principal: 2.5rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--fuente-general);
  line-height: 1.6;
  color: var(--color-negro);
  background: var(--color-blanco);
}

/* Navbar */
/* ----------- NAVBAR Y MENÚ ----------- */

header {
  background: var(--color-negro);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}
.navbar img {
  height: 50px;
}

/* Menú principal */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.menu li {
  position: relative;
}
.menu li a {
  color: var(--color-blanco);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s;
}
.menu li a:hover {
  background: var(--color-secundario);
  border-radius: 4px;
}

/* Submenú */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-negro);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 1000;
}
.sub-menu li a {
  padding: 10px;
  font-weight: normal;
  white-space: nowrap;
}
.sub-menu li a:hover {
  background: var(--color-secundario);
  border-radius: 0;
}

/* Mostrar submenú al pasar el mouse */
.menu li:hover > .sub-menu {
  display: block;
}

/* ----------- CARRUSEL ----------- */

.carrusel {
  top: 88px;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}
.carruselcontenido {
  display: flex;
  width: 300%;
  animation: slide 12s infinite;
}
.carruselSlide {
  flex: 0 0 33.333333%;
  display: flex;
  align-items: stretch;
}
.carruselSlide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes slide {
  0%    { transform: translateX(0%); }
  33%   { transform: translateX(0%); }
  36%   { transform: translateX(-33.333333%); }
  66%   { transform: translateX(-33.333333%); }
  69%   { transform: translateX(-66.666666%); }
  99%   { transform: translateX(-66.666666%); }
  100%  { transform: translateX(0%); }
}

/* Hero */
.hero .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.hero {
  justify-content: space-between;
  align-items: center;
  padding: 3rem 5%;
  background: var(--color-blanco);
}
.hero img {
  max-width: 100%;
}
.hero-img {
  flex: 1;
  text-align: right;
}
.hero-text {
  max-width: 45%;
  text-align: justify;
}
.hero-text h2 {
  font-size: var(--titulo-seccion);
  color: var(--color-primario);
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-secundario);
  color: var(--color-blanco);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

/* Secciones */
section {
  padding: 3rem 5%;
}
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-primario);
}
.timeline .event {
  margin: 1rem 0;
}
.timeline .year {
  font-weight: bold;
  color: var(--color-secundario);
}

/* Servicios */
.servicios .grid,
.noticias .grid,
.simbolos .grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.noticias {
  background: var(--color-primario);
}
.noticias h1 {
  color: var(--color-blanco);
  text-align: center;
}
.cardNoticias {
  padding: 1rem;
  text-align: center;
  border-radius: 5px;
  color: var(--color-blanco);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}
.cardNoticias img {
  width: 100%;
  margin-bottom: 1rem;
}

.card {
  background: var(--color-blanco);
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px var(--color-negro);
}
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Simbolos */
.simbolos {
  background: var(--color-secundario);
  color: var(--color-blanco);
  text-align: justify;
  padding: 2rem 15%;
}
.simbolos h1,
.simbolos h2 {
  color: var(--color-blanco);
  text-align: center;
}

/* Footer */
footer {
  background: var(--color-primario);
  color: var(--color-blanco);
}
.footerer {
  background: var(--color-primario);
  color: var(--color-blanco);
  text-align: justify;
  padding: 3rem 15%;

}
.footerer .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
footer h3 {
  margin-bottom: 10px;
}
.footer-grided {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
  gap: 20px;
  
}
.copy {
  text-align: center;
  margin-top: 1rem;
  font-size: var(--texto-pequeño);
}

/* Servicios sección personalizada */
.PersoServ {
  background: var(--color-primario);
  padding: 1rem;
  text-align: center;
  border-radius: 5px;
}
.PersoServ img {
  width: 100%;
  margin-bottom: 1rem;
 }
.titulo-servicios h2{
  color: var(--color-blanco);
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.CaServ {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cardservicio {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.cardservicio:hover {
  transform: scale(1.05);
}

/* ------------------------------------------
   1. REDES SOCIALES (IZQUIERDA)
------------------------------------------ */
.social-buttons {
  position: fixed;
  top: 65%;
  right:15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.social-btn {
  font-size: 20px;
  color: #fff;
  background-color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s;
}
.social-btn:hover {
  background-color: #555;
}


/* ------------------------------------------
   2. BOTONES LATERALES DERECHO (NO FLOTANTES)
------------------------------------------ */
.side-buttons {
  position: fixed;
  top: 35%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.side-btn {
  background-color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}
.side-btn:hover {
  background-color: #f0f0f0;
}


/* ------------------------------------------
   3. BOTONES SOBRE IMAGEN (RECURSOS / PAGOS)
   - No fijos
   - Sin fondo
   - Flotantes solo sobre imagen
------------------------------------------ */
.hero-image {
	
  position: relative; /* Contenedor relativo para posicionar hijos absolutos */
}

.hero-buttons {
  position: fixed;
  top: 30%; 
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.hero-btn {
  display: flex;
  align-items: center;
  color: white;
  gap: 8%;
  transition: opacity 0.3s;
  background-color:rgba(0,0,0,0.3);
  border-radius: 90px;
  border: none;
}

.hero-btn img {
  max-width: 8vw;  /* ocupa máximo 5% de la pantalla */
  height: auto;
}

.hero-btn:hover {
  opacity: 0.7;
  
}

