/* =================== Fuentes =================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =================== Variables =================== */
:root {
  --beltza: #111111;
  --white: #ffffff;
  --grisa: #99999b;
  --gris-iluna: #3c3c3b;
  --gris-argia: #ebecf3;
  --rosa: #eb787f;
    --rosa-argia: #f3c7ca;
  --berdea: #40847c;
     --berdea-argia: #bee9e4;
  --maxw: 1200px;
}

/* =================== Base =================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  color: var(--beltza);
  font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

a {
  color: var(--beltza);
  text-decoration: none;
}

a:hover {
  color: var(--gris-iluna);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--beltza);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* =================== Utilidades accesibles =================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================== Botones =================== */
.btn-primary {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--white);
  background-color: var(--beltza);
  border-color: var(--beltza);
  border-radius: 0;
}

.btn-primary:hover {
  background-color: var(--berdea);
  border-color: var(--white);
}

.btn-secondary {
  color: var(--beltza);
  background-color: var(--white);
  border-color: var(--white);
  border-radius: 0;
}

.btn-secondary:hover {
  background-color: var(--beltza);
  border-color: var(--white);
  color: var(--white);
}

/* =================== Header / Navbar =================== */
header .menu-nagusia {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color:var(--white);
  transition: background-color 0.25s ease, box-shadow 0.2s ease;
  padding: 0;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-toggler {
  line-height: 1;
  color: var(--beltza);
  border: var(--bs-border-width) solid currentColor;
  background-color: var(--white);
}

/* Estado scrolled */
.menu-nagusia.scrolled {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


.menu-nagusia .navbar-brand {
  padding: 0;
  margin-right: 30px;
}

.menu-nagusia .navbar-brand span {
  font-weight: 300;
}
.menu-nagusia .navbar-brand img {
  max-width: 80px;
  height: auto;
}

.navbar-fixed-top.scrolled .navbar-brand img {
  max-width: 60px;
}

.navbar-collapse {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.navbar-expand-xl .navbar-nav a.nav-link {
  position: relative;
  padding: 5px 10px;
  margin: 0 10px;
  font-size: 16px;
  color: var(--beltza);
    font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  background: none;
  text-decoration: none;
  z-index: 1;
}

.navbar-expand-xl .navbar-nav a.nav-link::before,
.navbar-expand-xl .navbar-nav a.nav-link::after {
  background: var(--rosa);
  content: "";
  position: absolute;
  z-index: -1;
}

.navbar-expand-xl .navbar-nav a.nav-link::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  transition: all 0.3s;
}

.navbar-expand-xl .navbar-nav a.nav-link:hover::after {
  height: 100%;
}

.navbar-expand-xl .navbar-nav a.nav-link:hover {
  color: var(--white);
}

.navbar-expand-xl .navbar-nav a.nav-link.active,
.navbar-expand-xl .navbar-nav .current-menu-item a.nav-link {
  color: var(--white);
  background: var(--rosa);
}

.navbar-expand-xl.navbar-fixed-top.scrolled a.nav-link {
  color: var(--beltza);
  margin-bottom: 1px;
}

.navbar-expand-xl.navbar-fixed-top.scrolled a.nav-link.active,
.navbar-expand-xl.navbar-fixed-top.scrolled a.nav-link:hover {
  color: var(--white);
}

.top-header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.sareak {
  margin-left: 35px;
  color: var(--beltza);
}

.sareak a {
  margin: 0 8px;
}

.sareak i {
  font-size: 18px;
  color: var(--berdea);
}

.contacto-dat {
  margin-left: 15px;
  color: var(--beltza);
}

.contacto-dat i {
  color: var(--gris-iluna);
  margin: 0 5px;
}

.contacto-dat a {
  color: var(--gris-iluna);
  margin-right: 10px;
     font-size: 15px;
}

/* =================== Home slider =================== */
 .hero-slider,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
      height: 100vh;
      min-height: 100vh;
    }

    .hero-slide {
      position: relative;
      height: 100%;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 1;
    }

    .hero-slider .carousel-caption {
      z-index: 2;
      right: 10%;
      left: 10%;
      bottom: 50%;
      transform: translateY(50%);
      padding: 0;
    }

    .hero-caption-box {
      max-width: 1000px;
      margin: 0 auto;
      text-align: center;
      color: #fff;
    }

    .hero-caption-box h1,
    .hero-caption-box h2 {
      font-size: clamp(2rem, 5vw, 4rem);
      line-height: 1.1;
      margin-bottom: 1rem;
      color: #fff;
    }

    .hero-caption-box p {
      font-size: clamp(1rem, 2vw, 1.4rem);
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }

    .hero-caption-box .btn {
      padding: 0.85rem 1.75rem;
      border-radius: 0;
      font-weight: 600;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
      width: 8%;
    }

    .hero-slider .carousel-indicators [data-bs-target] {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    @media (max-width: 768px) {
      .hero-slider .carousel-caption {
        right: 7%;
        left: 7%;
      }

      .hero-slider .carousel-control-prev,
      .hero-slider .carousel-control-next {
        width: 14%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .carousel-item {
        transition: none;
      }
    }

/* --- sarrerako presentazioa --- */
#el-estudio {
    background-color: var(--gris-argia); 
}

#el-estudio h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
}

#el-estudio h2 {
    font-size: 2.5rem; 
}

.letter-spacing-2 { letter-spacing: 2px; }
.letter-spacing-3 { letter-spacing: 3px; }

.estudio-filosofia p {
    font-size: 1.25rem; 
    line-height: 1.6;
    color: #1a1a1a;
}

.border-start {
    border-color: var(--rosa)!important;
     margin-left: 1.5rem;
}

.estudio-fotos-composicion {
    position: relative;
}

.foto-wrapper {
    overflow: hidden;
    transition: transform 0.4s ease;    
}

.foto-wrapper img {
    transition: transform 0.6s ease;
}

.foto-wrapper:hover img {
    transform: scale(1.03); 
}

.fachada-flotante {
    position: absolute;
    bottom: -30px; 
    right: 0;
    border: 8px solid #fff; 
    z-index: 10;
}

.btn-outline-dark {
    border-color: var(--berdea);
    color: var(--berdea);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.btn-outline-dark:hover {
    background-color: var(--berdea);
    border-color: var(--berdea);
    color: #fff;
}

@media (max-width: 991px) {
    #el-estudio h2 {
        font-size: 2rem;
    }
    .estudio-filosofia p {
        font-size: 1.1rem;
    }
    .fachada-flotante {
        position: relative;
        bottom: 0;
        margin-top: 1rem;
        border: none;
    }
}

/****sarrerako section*****/
.sec-00{
     padding: 5rem 0;
     background-color: #eee;
     
    
}
.sec-00 .box-content{
     max-width: 1200px;
    display: flex;
     flex-direction: column;
     justify-content: center;
     padding: 30px;
     margin: 0 auto;
    align-items: center;
    
}
.sec-00 h2{
     font-size: clamp(2rem, 5vw, 3.5rem);
    color: #40847c;
     text-align: center;
    font-weight: 400
    
}


.sec-subtitulo{
     margin:2rem 0 3rem 0;
    text-align: center;
    color:#4e5151;
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.5rem);
}
.sec-01{
   padding: clamp(2.5rem, 6vw + 0.5rem, 5rem) 0; 
}

.sec-01 h2{
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
     text-transform: uppercase;
}
.lema{
     border-top: 1px solid #40847c;
    border-bottom: 1px solid #40847c;
    padding: 1.5rem;
    font-weight: 300;
     font-size: clamp(1rem, 1.5vw + 0.6rem, 1.25rem);
     line-height:1.5;
}

.sec-titulo{
     color:#eb787f;
}
.sec-02{
   padding: clamp(2.5rem, 6vw + 0.5rem, 5rem) 0;
}
.sec-02 h2{
   font-size: 2.5rem;
  text-transform: uppercase;
}
/* --- Servicios Home --- */

#servicios-home {
    border-top: 1px solid #eee; /* Línea sutil de separación */
}

/* Iconos */
.icon-wrapper {
    color: #1a1a1a;
    transition: transform 0.3s ease, color 0.3s ease;
}

.servicio-item:hover .icon-wrapper {
    transform: translateY(-5px);
    color: #666; /* Un cambio suave de tono al pasar el ratón */
}

/* Tipografía de servicios */
.servicio-item h3 {
    font-size: 1.1rem;
}

.small-text {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* Enlaces "Saber más" */
.link-dark {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.link-dark:hover {
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 2px;
}

/* Espaciado responsivo */
@media (max-width: 768px) {
    .servicio-item {
        margin-bottom: 3rem;
    }
}
/* --- Parallax --- */
#servicios-parallax{
     padding: clamp(3.5rem, 8vw + 0.5rem, 8rem) 0;
}
#servicios-parallax {
    overflow: hidden; 
}
#servicios-parallax h2{
    color: var(--white); 
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}


.z-index-1 { z-index: 1; }


.card-servicio-over {
    background-color: rgba(255, 255, 255, 0.95); 
    border: none;
    border-radius: 2px; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(0);
}



.icon-boxed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.icon-boxed img {
   max-width: 60px
}


.card-servicio-over h3 {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

.small-text {
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

.btn-dark {
    background-color: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;color: #1a1a1a;
    box-shadow: inset 0 0 0 1px #1a1a1a;
}

.btn-dark:hover {
    background-color: #fff;
    color: #1a1a1a;
    box-shadow: inset 0 0 0 1px #1a1a1a;
}

/* Ajustes Responsive */
@media (max-width: 991px) {
    .card-servicio-over {
        margin-bottom: 2rem;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}
/* --- Sección Firmas --- */

.logos-grid {
    opacity: 0.8;
}

/* Estilo para los logos individuales */
.logo-item {
    max-height: 50px; 
    width: auto;
    filter: grayscale(100%); 
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Efecto al pasar el ratón */
.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05); 
}

.italic {
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
}

@media (max-width: 576px) {
    .logo-item {
        max-height: 40px;
        margin-bottom: 10px;
    }
}
/* =================== Img-top =================== */


.hero-parallax {
  position: relative;
  min-height: clamp(14rem, 35dvh, 24rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Imagen como fondo */
.hero-parallax__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-parallax__media .post-thumbnail {
  max-height: 500px;
  overflow:hidden;
}
.hero-parallax__media img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: bottom;
}
.portada .hero-parallax__media img {
  object-position: center;
}
/* Overlay para contraste AA */
.hero-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

/* Contenido centrado */
.hero-parallax__content {
  position: relative;
  z-index: 2;
  width: min(90vw, 1200px);
  margin-inline: auto;
  text-align: center;
  color: var(--white);
  padding: 3.5rem 1rem 2rem 1rem;
}
.hero-parallax h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
     color: var(--white);
    
}
.no-image {
  min-height: 160px;
  position:relative;
}
.no-image > h1 {
  position:absolute;
  bottom:1rem;
}
/*******testimonios*****/
.seccion-video{
    padding: clamp(2.5rem, 6vw + 0.5rem, 5rem) 0;
    
}
.seccion-video h2{font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--berdea);
  text-align: center;
  font-weight: 400;
}

.testimonial-carousel {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0; 
    margin-top: 30px;
     background-color: var(--white);
}

.testimonial-card {
    text-align: center;
    padding: 0 clamp(2rem, 8vw, 6rem); 
    position: relative;
}

.quote-icon {
    display: block;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--rosa);
    line-height: 1;
    margin-bottom: -10px;
}

.testimonial-text {
    font-size: clamp(1rem, 1vw + 0.7rem, 1.125rem);
    line-height: 1.7;
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: clamp(0.95rem, 1vw + 0.6rem, 1.05rem);
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-author strong {
    font-weight: 700;
}

.author-location {
    color: #70757a;
    text-transform: none;
    font-weight: 400;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    width: 2.5rem;
    height: 2.5rem;
}

.testimonial-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.testimonial-carousel .carousel-indicators [button] {
    background-color: #333;
}

.testimonial-carousel .carousel-indicators {
    bottom: -15px; 
}

.testimonial-carousel .carousel-indicators .active {
    background-color: var(--rosa); 
}

/* =================== Imagen interior contacto =================== */
section.section-top-img {
  position: relative;
}

.goiburu-irudia {
  height: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.goiburu-irudia img {
  object-fit: cover;
  height: 40vh;
  width: 100%;
}

section.section-top-img h1 {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  line-height: 1.2;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 10px 30px;
}

/* =================== Divider =================== */
.divider-letter {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  margin-top: 4rem;
}

.divider-letter::before,
.divider-letter::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--beltza);
}

.divider-letter__char {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  color: var(--beltza);
  padding-inline: clamp(0.25rem, 1vw, 0.5rem);
}

/* =================== CTA box =================== */
.cta__panel {
  position: relative;
  background: #fff;
  text-align: center;
  padding: clamp(2rem, 3vw, 2rem);
}

.cta__panel p {
  max-width: 950px;
  margin: 30px auto;
  line-height: 2;
  font-size: 1.3rem;
}

.az-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding: 30px;
}

.az-logos img {
  max-width: 250px;
}

.az-logos p {
  margin-right: 30px;
}

/* =================== Servicios home =================== */
.servicios-sarrera {
  background-color: var(--beltza);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.servicios-sarrera h2 {
  color: var(--white);
  font-size: 35px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.servicios-sarrera h3 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

.icon-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--urdina);
  border: 1px solid var(--white);
  margin: 15px;
  padding: 30px;
  width: 20%;
  min-height: 250px;
  border-radius: 50px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.icon-box:hover {
  border: 1px solid var(--urdina);
  background-color: var(--urdina);
}

.icon-box img {
  max-width: 78px;
  margin-bottom: 15px;
}

/* =================== Contacto =================== */
.kontaktua {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.kontaktua-box {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.datuak {
  background-color: var(--berdea-argia);
  color: var(--beltza);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  text-align: left;
}
.datuak img{
    max-width: 100px;
    
}

.izena {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.contact2 {
  font-style: normal;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.contact2__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact2__item {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--beltza);
}

.contact2__item a {
  color: var(--beltza);
  text-decoration: none;
  word-break: break-word;
}

.formularioa {
  width: 100%;
  margin: 0;
  align-self: center;
}
.formularioa .sub-title {
  font-weight: 600;
     margin: 30px;
    font-size: 18px;
    color: var(--grisa);
}

section.kontaktua h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin: 0 0 1.5rem 30px;;
    font-weight: 300;
    color: var(--grisa);
     font-size:22px;
}

.kontaktua-form {
  width: min(92%, 720px);
  margin-inline: auto;
}

.form-control:focus,
textarea.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.6);
  border-color: transparent;
}

.services-hero {
    background-color: #f4f4f4; 
    padding: 100px 0 60px 0;
}

.services-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 5px;
    font-size: 2.5rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.letter-spacing-2 { letter-spacing: 2px; }


.bg-dark {
    background-color: #1a1a1a !important;
    border-left: 5px solid #c5a47e; 
    transition: transform 0.3s ease;
}

.bg-dark:hover {
    transform: scale(1.02);
}

.group {
    cursor: pointer;
    transition: all 0.4s ease;
}

.group img {
    filter: brightness(0.9);
    transition: transform 0.6s ease, filter 0.4s ease;
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.group:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.group .bg-white {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.list-unstyled li strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.list-unstyled li {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #555;
}

.cta-banner {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
}

/* Responsivo */
@media (max-width: 991px) {
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
}
/* --- Simulación Galería WordPress --- */

.wp-gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer;
}

.wp-gallery-item img {
    width: 100%;
    height: 450px; /* Altura para la foto principal */
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.wp-gallery-item.mini img {
    height: 217px; /* Altura ajustada para las dos laterales */
}

/* Las 3 de abajo un poco más bajas */
.col-md-4 .wp-gallery-item img {
    height: 300px;
}

/* Efecto Zoom al estilo WP Premium */
.wp-gallery-item:hover img {
    transform: scale(1.05);
}

/* Leyenda (Caption) estilo Gutenberg */
.wp-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wp-gallery-item:hover .wp-caption {
    opacity: 1;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .wp-gallery-item img, .wp-gallery-item.mini img {
        height: 300px;
    }
}


.contenedor-imagen {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.imagen-encajada {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center; 
  display: block;
}

@media (min-width: 992px) {
  .contenedor-imagen-ruta {
    height: 100%;
  }
    
}
/* sobre mi*/
#sobremi {
     padding: clamp(2.5rem, 6vw + 0.5rem, 5rem) 0;
   max-width: 900px;
    margin: 0 auto;
     

}
#sobremi .contenedor-img img{
   
    width: 280px;             
    aspect-ratio: 1 / 1;       
    border-radius: 50%;        
    object-fit: cover;         
    object-position: center;   
     margin-bottom: 50px;

}

.cierre{
    padding: clamp(2.5rem, 6vw + 0.5rem, 5rem) 0;
}
.cierre h2{
    font-size: clamp(1.75rem, 3.5vw + 0.6rem, 2.5rem);
     margin-bottom: 1.5rem;
}
.cierre .linea{
    margin-bottom: 1.5rem
}
.cierre p{
    font-size: clamp(0.9375rem, 1vw + 0.7rem, 1.125rem);
     margin-bottom: 1.5rem;
}
.cierre img{
   max-width: 500px;
    height: auto;
}

.respaldo-academico {
    max-width: 900px;
    margin: 0 auto;
}

.respaldo-academico h3 {
    color: var(--berdea);
    font-size: clamp(1.2rem, 3.5vw + 0.6rem, 1.8rem); 
    font-weight: normal;
    margin-bottom: 1.5rem;
     border-bottom: 1px solid var(--berdea);
     padding-bottom:20px;
}

.respaldo-academico ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.respaldo-academico li {
    font-size: clamp(1rem, 1vw + 0.7rem, 1.125rem); 
    line-height: 1.6;
    color: var(--grisa-iluna);
    margin-bottom: 0.8rem; 
}

.respaldo-academico li::marker {
    color: var(--rosa);
    font-size: 1.25em; 
}

.respaldo-academico li strong {
    color: #000000;
    font-weight: 600;
}
.metodo{
     margin: 40px auto;
     max-width: 700px;
     background-color:var(--gris-argia);
     padding: 30px;
    
}
/* =================== Footer =================== */
.site-footer {
  background-color: #fff;
  color: var(--beltza);
    padding:1.5rem 0 0;
}
.contact__list a {
  color:  var(--berdea);
    font-weight: 400;
     font-size: 18px;
}


.footer__info {
     width: 100%;
     display: flex;
     justify-content: center;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--berdea-argia);
     padding: 3rem 0;
    border-radius: 20px;
 
}
.footer__info .h5 {
  color:var(--berdea);
}
.footer__info .sareak{
     margin-left:0; 
}
.footer__info .sareak i{
    font-size: 30px;
    color:var(--grisa);
}
.footer__info img {
     max-width: 100px;
}
.footer__info span {
  font-weight: 300;
    font-size: 1.5rem;
     font-family: "Montserrat", sans-serif;
}

.footer-logo {
     display: flex;
     align-items: center
 
  
}

.contact {
  font-style: normal;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap:1rem;
  line-height: 1.5;
}
.contact__item span::before{
    color:var(--berdea);
    
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.footer__map .map__iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}
.footer-bottom{
    background-color: var(--berdea);
  padding: 0.5rem;
  color: #fff;
     margin-top: 20px;
}
.footer-bottom .credits {
  color: #fff;
  position: relative;
  display: flex;
  font-size: 14px;
  justify-content: center;
  text-align: center;
  justify-content: center !important;
}
.footer-bottom ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin-left: 0;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.footer-bottom ul li {
  margin-right: 10px;
}
.footer-bottom li a {
  margin-left: 2rem;
  text-decoration: underline;
  color: #fff;
}
@media print {
  .map__iframe {
    display: none;
  }
}

/* =================== Responsive =================== */
@media (min-width: 992px) {
  .kontaktua-box {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.25fr);
  }
}

@media (max-width: 1199.98px) {
    .menu-nagusia .navbar-brand span {
  font-size: 15px;
}
  .menu-nagusia .navbar-brand img {
    max-width:55px;
    margin-right: 0;
  }

  .navbar-collapse {
    align-items: flex-start;
  }

  .navbar-collapse .navbar-nav {
    margin-right: auto;
      order:1;
      
  }
    .navbar-expand-xl .navbar-nav a.nav-link{
         border: 1px solid #fff;
    }

  .contacto-dat {
    margin-left: 0;
    display: flex;
    flex-direction: column;
  }
    .top-header{
         order:2;
         border:1px solid #ddd;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .sec-01 img{
   margin-bottom: 30px;
}
  .footer__wrap {
    grid-template-columns: 1fr;
  }

  .footer__info {
    padding-right: 0;
  }
    .foto-wrapper img{
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    
    .cierre img{
         max-width: 100%;
    }
  .az-logos {
    flex-direction: column;
  }

  .footer-logo img {
    max-width: 60px;
       margin-right: 5px;
  }
    .footer__info span{
        font-size: 18px;
        
    }

  

  .icon-box {
    width: 40%;
    min-height: 200px;
  }

  .icon-box img {
    max-width: 50px;
  }
}

@media (max-width: 576px) {
  .contact2__list {
    text-align: center;
  }
}