:root {
  --bg: #ffffff;       /* fondo blanco total */
  --text: #2b2b2b;     /* gris oscuro legible */
  --accent: #7CC68C;   /* verde claro */
  --accent-dark: #66b86a; /* verde oscuro para hover */
}

/* Reset básico */
* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 160px; /* evita que el contenido quede oculto tras el header sticky */
}
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* BANNERS */
.banner:first-of-type {
  position: relative; /* se desplaza con scroll */
  width: 100%;
  z-index: 1;
  height: auto;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.banner:last-of-type img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* CABECERA */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  height: 160px;
  z-index: 101;
}

/* Contenedor */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  height: 120px;
  max-width: 100%;
  display: block;
}

/* NAVEGACIÓN */
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #2b2b2b; /* negro inicialmente */
  font-weight: 700;
  transition: color 0.18s ease, transform 0.12s ease;
}
nav a:hover {
  color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Botón idioma con cambio de texto */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  width: 60px;
  height: 36px;
  transition: background 0.2s ease;
}

.lang span {
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang span.text-normal {
  transform: translateY(0);
  opacity: 1;
  color: #fff; /* siempre legible */
}

.lang span.text-hover {
  transform: translateY(100%);
  opacity: 0;
  color: #fff; /* siempre legible */
}

.lang:hover {
  background: var(--accent-dark);
}

.lang:hover span.text-normal {
  transform: translateY(-100%);
  opacity: 0;
}

.lang:hover span.text-hover {
  transform: translateY(0);
  opacity: 1;
}

/* CONTENIDO */
main {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 40px;
}

section {
  margin-bottom: 60px;
  scroll-margin-top: 20px;
}

h1, h2 {
  color: var(--accent);
  margin: 0 0 12px 0;
}

p, li {
  font-size: 1.03rem;
  color: var(--text);
}
ol, ul {
  padding-left: 20px;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-dark);
}

/* Mapa */
.mapa iframe {
  width: 100%;
  max-width: 820px;
  height: 450px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* PIE */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.04);
  text-align: center;
  padding: 20px;
  font-size: 0.92rem;
  color: #666;
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .logo { height: 90px; }
  nav { order: 3; width: 100%; text-align: center; margin-top: 8px; }
  .container { gap: 8px; padding: 6px 0; }
  section { scroll-margin-top: 10px; }
  p, li { font-size: 1rem; }
}

/* ====================================== */
/* NUEVO BLOQUE: imágenes alineadas derecha con zoom */
/* ====================================== */

.contenido-img.derecha {
  float: right;
  width: 300px;        /* tamaño fijo */
  max-width: 35%;
  height: auto;
  margin: 8px 0 12px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

/* Efecto zoom */
.contenido-img.derecha:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* En móviles, las imágenes se centran para legibilidad */
@media (max-width: 768px) {
  .contenido-img.derecha {
    float: none;
    display: block;
    margin: 12px auto;
    max-width: 100%;
  }
}

