/* ===== VARIABLES DE COLOR ===== */
:root {
  --color-azul: #0078d7;
  --color-azul-oscuro: #005a9e;
  --color-rojo: #d70000;
  --color-verde: #2e8b57;
  --color-gris-claro: #e0e0e0;
  --color-gris: #9e9e9e;
  --color-gris-oscuro: #555;
  --color-texto: #333;
}

/* ===== ESTRUCTURA GENERAL ===== */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* ===== HEADER ===== */
header {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  background: linear-gradient(270deg, #1e90ff, #003366, #1e90ff);
  background-size: 400% 400%;
  animation: fondoOscilante 12s ease-in-out infinite;
}

header .logo {
  max-height: 50px;
}

.header-texto {
  margin-left: 20px;   /* separación dinámica respecto al logo */
  font-size: 1rem;
  font-weight: 500;
  color: white;
  transition: opacity 0.8s ease-in-out;
  text-align: left;
}


header .header-icons {
  display: flex;
  gap: 0px;
}

header .header-icons a {
  color: white;
  font-size: 1.4rem;
  margin-left: 15px;
  text-decoration: none;
  font-size: 28px;
}

header .header-icons a:hover {
  color: #00ff99;
}

/* ===== TEXTO DEL HEADER (carrusel de frases) ===== */
.header-texto {
  position: absolute;
  bottom: 8px;
  left: 200px;   /* alineado a la izquierda */
  font-size: 1rem;
  font-weight: 500;
  color: white;
  transition: opacity 0.8s ease-in-out;
  text-align: left;
}

/* ===== CARRUSEL DE IMÁGENES ===== */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 30px auto 15px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  height: 330px;
}

.carrusel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carrusel-slide.activo {
  opacity: 1;
  z-index: 2;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 5s ease;
}

.carrusel-slide.activo img {
  transform: scale(1.1);
  transition: transform 5s ease; /* ya lo tienes */
}

/* Animación para que el texto suba desde abajo */
@keyframes subirDesdeAbajo {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.carrusel-texto {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 3;
  animation: subirDesdeAbajo 0.8s ease-out;
}

.carrusel .prev,
.carrusel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  z-index: 4;
  user-select: none;
  text-decoration: none;
}

.carrusel .prev { left: 10px; }
.carrusel .next { right: 10px; }

.carrusel .prev:hover,
.carrusel .next:hover {
  color: #00ff99;
}


/* ===== ANIMACIÓN DE FONDO ===== */
@keyframes fondoOscilante {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.contenedor {
  flex: 1;
  display: flex;
}

nav {
  width: 140px;
  background: #f5f5f5;
  padding: 1rem;
  box-shadow: inset -1px 0 5px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

nav span.menu-section {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: #444;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

nav a {
  display: block;
  margin: 8px 0;
  padding: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 5px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Botones principales */
nav a.avanpc { background: var(--color-azul); }
nav a.aviaranch { background: var(--color-rojo); }
nav a.avanzoonia { background: var(--color-verde); }

/* Botones de información */
nav a.btn-nosotros { background: var(--color-gris-claro); color: var(--color-texto); }
nav a.btn-servicios { background: var(--color-gris); }
nav a.btn-contacto { background: var(--color-gris-oscuro); }

/* ===== BOTONES DEL NAV CON DEGRADADO Y EFECTO CARGA ===== */
nav a {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.3s ease;
}

/* Botones principales con degradado institucional */
nav a.avanpc {
  background: linear-gradient(135deg, var(--color-azul), var(--color-azul-oscuro));
  color: #fff;
}
nav a.aviaranch {
  background: linear-gradient(135deg, var(--color-rojo), #8b0000);
  color: #fff;
}
nav a.avanzoonia {
  background: linear-gradient(135deg, var(--color-verde), #1e5d3b);
  color: #fff;
}

/* Botones de información con degradado institucional */
nav a.btn-nosotros {
  background: linear-gradient(135deg, var(--color-gris-claro), #bdbdbd);
  color: var(--color-texto);
}
nav a.btn-servicios {
  background: linear-gradient(135deg, var(--color-gris), #6e6e6e);
  color: #fff;
}
nav a.btn-contacto {
  background: linear-gradient(135deg, var(--color-gris-oscuro), #333);
  color: #fff;
}

/* Franja translúcida que simula carga */
nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.6s ease;
}

/* Al pasar el mouse, la franja se desliza una sola vez */
nav a:hover::before {
  left: 100%;
}

/* Al pasar el mouse, intensifica el color base */
nav a:hover {
  filter: brightness(1.2);
}


/* ===== CONTENIDO ===== */
.contenido {
  flex: 1;
  background: #f5f5f5;
}

.contenido iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f5f5f5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #sidebar {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100% - 60px);
    background: #f5f5f5;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 100;
  }

  #sidebar.active {
    display: block;
  }

  .menu-toggle {
    display: inline-block;
    font-size: 1.5rem;
    color: #fff;
  }
}
.logo {
  cursor: pointer;   /* cambia el cursor a manita */
  transition: transform 0.2s ease-in-out;
}

.logo:hover {
  transform: scale(1.05);  /* efecto ligero al pasar el mouse */
}
/* Logo */
.logo {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.logo:hover {
  transform: scale(1.05);
}

/* Base: íconos blancos y transición */
.header-icons a i {
  color: #ffffff; /* color base blanco */
  cursor: pointer;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Hover general: solo el zoom (sin fijar color aquí) */
.header-icons a:hover i {
  transform: scale(1.2);
}

/* Hover específico por icono: colores distintos */
.header-icons a:hover i.fa-map-marker-alt {
  color: yellow; /* ubicación -> amarillo */
}

.header-icons a:hover i.fa-whatsapp {
  color: #25D366; /* WhatsApp -> verde oficial */
}

/* (Opcional) estado activo/click: pequeño rebote */
.header-icons a:active i {
  transform: scale(1.1);
}

.servicios-intro {
  text-align: center;        /* ya lo tienes */
  font-size: .9rem;           /* reduce el tamaño, prueba con 0.9rem o 14px */
  color: #333333;            /* color del texto, cámbialo al que usabas antes */
  background-color: #f5f5f5; /* si tenía fondo, ajusta aquí */
  padding: 0px;             /* opcional: espacio interno */
}

.header-icons a:hover i.fa-map-marker-alt {
  color: yellow;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.7);
}

.header-icons a:hover i.fa-whatsapp {
  color: #25D366;
  text-shadow: 0 0 8px rgba(37, 211, 102, 0.7);
}
