/*  GENERAL  */
body {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  margin: 0;
  padding: 0;
  color: #172e40;
  background-color: #fff;
  scroll-behavior: smooth;
}

h2, h1 {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

p {
  font-family: "Codec Pro", sans-serif;
}

/*  HEADER  */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem; 
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  width: 240px; 
  height: auto;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0077b6;
}

/*  EFECTO CARRUSEL (mejorar) */
.hero-slider {
  position: relative;
  width: 100%;
  max-height: 550px;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.30s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.30s ease-in-out;
  display: none;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: center;
}

/* Flechas del carrusel */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/*  Ajuste de scroll para el menú fijo  */
section {
  scroll-margin-top: 99px; 
}


/*  ABOUT de dos columnas  */
.about {
  padding: 3rem 2rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about h2 {
  color: #00773e;
  text-align: center;
  margin: 0 auto 2rem auto;
  font-family: "Century Gothic", sans-serif;
  font-weight: bold;
  font-size: 2rem;
}


.about-text {
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  gap: 2rem;
  font-family: "Codec Pro", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text p {
  flex: 1;
  text-align: justify;
}

/* Para pantallas pequeñas: una sola columna */
@media (max-width: 768px) {
  .about-text {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-text p {
    text-align: center;
  }
}

/* ===== SECCIÓN ABOUT ===== */
.about {
  position: relative;
  min-height: 200px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #eff6fb, #eff6fb); /* gradient para pruebas */
  overflow: visible;
}

/* ==== Botones laterales dentro de la sección about ==== */
.about-tabs {
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px; /* separación entre botones */
  z-index: 40;
  pointer-events: auto;
}

/* === Estilo general de los botones === */
.tab-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transform-origin: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  writing-mode: horizontal-tb;
  transition: all 0.3s ease;
}

/* Colores personalizados por botón */
.tab-btn.mision {
  background-color: #ffb347;   
  color: #111;
}

.tab-btn.vision {
  background-color: #fe6136;  
  color: #111;
}

.tab-btn.valores {
  background-color: #38b6ff;  
  color: #111;
}

/* Efecto hover */
.tab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* Posiciones individuales */
.tab-btn.mision { margin-top: -100px; }
.tab-btn.vision { margin-top: 0; }
.tab-btn.valores { margin-top: 100px; }

/* PANEL CLIP-PATH aun en proceso */
.clip-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  max-width: 760px;
  transform: translate(-50%, -50%);
  padding: 1.6rem;
  background: #fff;
  border-radius: 12px;
  text-align: justify;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  z-index: 30;
  pointer-events: none;
  --cx: 50%;
  --cy: 50%;
  --r: 0px;
  clip-path: circle(var(--r) at var(--cx) var(--cy));
  transition: clip-path 420ms cubic-bezier(.2,.9,.3,1), opacity 220ms;
  opacity: 0;
}

/* PANEL ABIERTO */
.clip-panel.is-open {
  --r: 1200px;
  opacity: 1;
  pointer-events: auto;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .about-tabs { display: none; }
  .clip-panel {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: none;
    border-radius: 10px;
    --r: 1200px;
    clip-path: none;
  }
}


/*  FUNDADORA  */
.founder {
  position: relative;
  background-color: #ffffff; 
  color: #222;
  text-align: justify;
  padding: 6rem 2rem;
  overflow: hidden; 
}

/* fondo translúcido */
.founder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/PROIKEN\ TEXTO.png"); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.22; 
  z-index: 0;
}

/* contenido principal */
.founder h2,
.founder p {
  position: relative;
  z-index: 1;
}

.founder h2 {
  color: #00773e;
  text-align: center;
  margin: 0 auto 2rem auto;
  font-family: "Century Gothic", sans-serif;
  font-weight: bold;
  font-size: 2rem;
}

.founder p {
  font-family: "Codec Pro", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}


.linea-horizontal {
  border: 0;
  height: 3px;
  background-color: #028f69;
  width: 80%; 
}


/*  SERVICIOS  */
.services {
  padding: 3rem 2rem;
  text-align: center;
}

.services h2 {
  color: #00773e;
  text-align: center;
  margin: 0 auto 2rem auto;
  font-family: "Century Gothic", sans-serif;
  font-weight: bold;
  font-size: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  color: white;
  padding: 2rem;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card span {
  display: block;
  margin-top: 0.5rem;
  font-weight: normal;
}

.card.blue { background-color: #18558e; }
.card.green { background-color: #028f69; }
.card.yellow { background-color: #fac866; }
.card.purple { background-color: #a03869; }


/* Responsivo: una columna en celular */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.linea-horizontal {
  border: 0;
  height: 3px;
  background-color: #028f69;
  width: 80%; 
}

/* === CONTACT === */
.contact {
  padding: 3rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.contact h2 {
  color: #00773e;
  text-align: center;
  margin: 0 auto 2rem auto;
  font-family: "Century Gothic", sans-serif;
  font-weight: bold;
  font-size: 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 555px;
  margin: 2rem auto;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Codec Pro", sans-serif;
}

.contact button {
  background-color: #00773e;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #005f32;
}


/* FOOTER FINAL */
footer {
  background-color: #00264d;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-family: "Codec Pro", sans-serif;
}

/* FOOTER BASE */
.footer {
  position: relative;
  background-color: #ffffff;
  font-family: "Codec Pro", sans-serif;
  color: #0d1c2e;
  overflow: hidden;
}

/* Íconos e info */
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px 20px 20px;
  position: relative;
  z-index: 2;
  margin-bottom: 0px;
}

.footer-icons {
  display: flex;
  gap: 30px;
  margin-bottom: 65px;
}

.footer-icons a {
  background-color: #172e40;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  background-color: #009873;
}

.footer-info p {
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: -60px;
}

/* Logo en footer */
.footer-bottom {
  display: flex;
  justify-content: flex;
  align-items: center;
  padding: 0 50px 40px 50px; 
  position: relative;
  z-index: 2;
  margin-bottom: 90px;
}

.footer-logo img {
  width: 220px;
  height: auto;
  object-fit: contain;
  position: relative;
}

/* Formas decorativas */
.footer-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
}

.blue-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 140px;
  background-color: #0d4b8e;
  clip-path: polygon(0 0, 100% 90%, 100% 100%, 0 100%);
}

.green-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: #009873;
}

.magenta-triangle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 140px;
  background-color: #9c2a64;
  clip-path: polygon(10% 100%, 100% 0, 100% 100%);
}


/* Responsivo en celular */
@media (max-width: 768px) {
  .logo img {
    width: 180px;
  }

  nav ul {
    gap: 1rem;
  }

  .hero-slider {
    max-height: 400px;
  }

  .slide img {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    max-height: 300px;
  }

  .slide img {
    height: 300px;
  }

  .prev, .next {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Paneles siempre en DOM */
.tab-panel {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  padding: 2rem;
  width: 60%;
  max-width: 600px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 30;
}

/* Panel activo */
.tab-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}


/* Botones laterales */
.tab-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00773e;
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: "Century Gothic", sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background 0.3s;
  z-index: 20;
  border-radius: 0 10px 10px 0;
}

.tab-btn:hover {
  background-color: #00984f;
}

/* Posiciones específicas */
.tab-mision { left: 0; }
.tab-vision { right: 0; top: 42%; border-radius: 10px 0 0 10px; }
.tab-valores { right: 0; top: 58%; border-radius: 10px 0 0 10px; }

/* Fondo difuminado detrás del panel */
body.showing-panel::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 25;
}
