/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   VARIABLES
========================= */
:root {
  --azul-oscuro: #22275f;
  --azul-acento: #4a5aa3;
  --gris-claro: #f4f4f4;
  --gris-texto: #333;
  --blanco: #ffffff;
  --footer-bg: #1a1f4a; 
}

/* =========================
   BASE
========================= */
body {
  font-family: "Source Sans 3", Arial, sans-serif;
  background: var(--gris-claro);
  color: var(--gris-texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--azul-oscuro);
  font-weight: bold;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 0rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

p {
  font-size: 1.15rem;
  line-height: 1.2;
}

/* =========================
   HERO
========================= */
.hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position-x: center;
  background-position-y: bottom;
  background-repeat: no-repeat;
}

/* Hero específico de cada página */
.hero-sobre {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-sobre.jpg");
  background-position-y: center;
}

.hero-servicios {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-servicios.jpg");
background-position-y: bottom;
  
}

.hero-contacto {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-contacto.jpg");
  background-position-y: center;
}

.hero-fundador {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-fundador.jpg");
  background-position-y: bottom;
}

.hero-bienvenida {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-bienvenida.jpg");
  background-position-y: center;
}

.hero-enlaces {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-enlaces.jpg");
  background-position-y: center;
}
.hero-index {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-image: url("imagenes/hero-index.jpg");
  background-position-y: center;
}

/* =========================
   LAYOUT
========================= */
.wrapper {
  display: flex;
  flex: 1 1 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: var(--blanco);
  min-width: 0;
}

main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 30px;
}

main ul {
  padding-left: 1.5rem;
}

main ul li {
  padding-left: 0.6rem;
  line-height: 1.2;
}

/* =========================
   MENÚ
========================= */
.menu {
  flex: 0 0 240px;          /* ancho fijo de 240px, no se comprime ni crece */
  background: var(--azul-oscuro);
  color: var(--blanco);
  display: flex;
  flex-direction: column;
}

.menu .logo img {
  width: 100%;
  padding: 20px;
}

.menu-links a {
  display: block;
  padding: 5px 20px;
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.95rem;
}

.menu-links a:hover {
  background: rgba(255,255,255,0.15);
}

.menu-links a.active {
  background: var(--azul-acento);
  font-weight: bold;
}

/* =========================
   IDIOMAS
========================= */
.idiomas {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  padding: 20px 20px;
}

.idiomas a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.idiomas img {
  width: 25px;
  height: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.25s ease;
}

.idiomas a.activo img {
  filter: none;
  opacity: 1;
}

.idiomas a.activo span {
  color: var(--blanco);
  font-weight: 600;
}

.idiomas a:hover img {
  opacity: 0.85;
}

.idiomas a:hover span {
  color: var(--blanco);
}


/* =========================
   CONTACTO
========================= */

.contacto {
  padding: 50px 20px;
}

.contacto-contenido {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.contacto h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.contacto .entradilla {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 40px;
}

.contacto p {
  font-size: 1.15rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 20px;
}
.contacto-imagen img {
  width: 50%;
  border-radius: 6px;
}
/* 🔹 BLOQUE DESTACADO DE DATOS */
.contacto-datos {
  margin: 50px auto;
  padding: 35px 40px;
  max-width: 600px;
  border: 1px solid #ddd;
  background-color: #f7f8f9;
}

.contacto-datos p {
  margin-bottom: 15px;
  font-size: 1.15rem;
}

.contacto-datos a {
  color: var(--azul-oscuro);
  text-decoration: none;
}

.contacto-datos a:hover {
  text-decoration: underline;
}

.dato-direccion {
  margin-bottom: 25px;
}

.cierre {
  margin-top: 40px;
  font-style: italic;
  color: #555;
}

.boton-mapa {
	display: block;
	width: 100%;
	text-align: center;
	background-color: var(--azul-acento);
	color: #fff;
	padding: 15px 0;
	font-weight: 600;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	text-decoration: none;
	font-size: 1rem;
	transition: background 0.3s;
}

.contacto-mapa {
	margin-top: 40px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0,0,0,0.1);
	border: 2px solid var(--azul-acento);
}

/* =========================
   CONTACTO · BLOQUE IMAGEN + DATOS
========================= */

.contacto-bloque {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin: 0px auto;
  max-width: 900px;
}

.contacto-imagen {
  flex: 1;
}

.contacto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contacto-datos {
  flex: 1;
}

/* =========================
   FUNDADOR
========================= */
.main-fundador {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.main-fundador figure {
  width: 280px;
  flex-shrink: 0;
  padding-top: 10px;
}

.main-fundador img {
  width: 100%;
  border-radius: 6px;
}

.main-fundador figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.main-fundador .texto p {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--footer-bg);
  color: #dcdcdc;
  padding: 10px 20px 10px;
}

.footer-contenido {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.footer-bloque h3,
.footer-bloque h4 {
  color: var(--blanco);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-bloque p {
  margin-bottom: 4px;
  line-height: 1;
font-size: 0.80rem;
}

.footer a {
  color: var(--blanco);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #aaa;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  background: var(--azul-acento);
  color: #fff;
  text-align: center;
  line-height: 46px;
  font-size: 1.5rem;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
  
  margin: auto;
  }
  .menu .logo img {
  width: 220px;
  margin: auto;
  }

  .menu {
  width: 100%;
  }

  main {
    padding: 30px 20px;
  }

  .main-fundador {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .main-fundador figure {
    width: 220px;
  }

  .servicios-table, .servicios-table tr, .servicios-table td {
    display: block;
    width: 100%;
  }

  .servicios-table td {
    margin-bottom: 20px;
  }

  .enlace-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .enlace-item img {
    width: 40px;
  }
}

@media (max-width: 768px) {

  .contacto-bloque {
    flex-direction: column;
    gap: 25px;
   }

  .contacto-imagen img {
    max-height: 200px;
  }

  .hero {
  width: 100%;
  height: 200px;
  }

  .hero-contacto {
  width: 100%;
  height: 200px;
  }

  .hero-servicios {
  width: 100%;
  height: 200px;
  }

  .hero-index {
  width: 100%;
  height: 200px;
  }

  .hero-bienvenida {
  width: 100%;
  height: 200px;
  }

  .hero-enlaces {
  width: 100%;
  height: 200px;
  }

  .hero-sobre {
  width: 100%;
  height: 200px;
  }
}
/* =========================
   OTROS BLOQUES (SERVICIOS, MVV, ENLACES)
========================= */

/* Servicios */
.servicios-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 30px 5px;
  margin: 10px 0;
}

.servicios-table td {
  vertical-align: top;
  padding: 35px 30px;
  border-radius: 12px;
  color: #0b2a4a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.servicios-table .auditor { background: #f0f7ff; }
.servicios-table .consultoria { background: #f0f7ff; }

.servicios-table td h3 {
  color: #0b2a4a;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.servicios-table td ul li {
  color: #0b2a4a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.bloque-frase {
  margin-top: 15px;
  margin-bottom: 15px;
  font-style: italic;
  font-size: 1.5rem !important;
  line-height: 1.2;
  font-weight: bold;
  color: var(--azul-oscuro);
}

/* Frase destacada */
.servicios-frase {
  text-align: center;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--azul-acento);
  margin: 10px 10px;
  line-height: 1.4;
  background-color: #f0f7ff;
  border-left: 4px solid var(--azul-acento);
  padding-left: 15px;
  border-radius: 6px;
  font-weight: bold;
}

.frase-roja {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 1.5rem !important;
  line-height: 1.2;
  font-weight: bold;
  color: red;
font-style: italic;
}


/* Enlaces */
.enlaces-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.enlace-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 5px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.enlace-item img {
  width: 50px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.enlace-item a {
  color: var(--azul-oscuro);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
}

.enlace-item a:hover {
  color: var(--azul-acento);
  text-decoration: underline;
}

.enlace-item:hover {
  transform: translateY(-2px);
}
.principios-lista {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.principio {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-left: 20px;
}

.principio .bullet {
  font-weight: bold;
  line-height: 1.3;
  flex-shrink: 0;
}

.principio p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
}
.contacto-intro {
  font-style: italic;       /* un toque elegante */
  font-weight: 800;         /* un poco más de presencia */
  font-size: 1.3rem;        /* ligeramente más grande que un párrafo normal */
  color: var(--azul-oscuro);
  margin-bottom: 20px;
}