{
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contenedor-principal {
  flex: 1;
}

:root {
  --verde-principal: #3fbab3;
  --verde-oscuro: #1f5d59;
  --turquesa-suave: #b2e3e0;
  --crema: #ffffff;
  --negro: #000000;
}

/* TIPOGRAFÍAS */
@font-face {
  font-family: "Roots";
  src: url('./Roots.ttf');
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3{
  font-family: 'Roots', serif;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

header h1 {
  letter-spacing: normal;
}

/* ENCABEZADO */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 35px;
  background-color: var(--verde-oscuro);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.encabezado-izquierda {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.titulo-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.titulo-link:hover {
  opacity: 0.7;
}

.titulo {
  font-size: 3rem;
  margin: 0;
  color: var(--crema);
}

.subtitulo {
  font-size: 1rem;
  margin: 0;
  color: var(--crema);
}

.encabezado-derecha {
  font-weight: bold;
  display: flex;
  gap: 30px;
}

.encabezado-derecha a {
  text-decoration: none;
  color: var(--crema);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.encabezado-derecha a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--turquesa-suave);
  transition: width 0.3s ease;
}

.encabezado-derecha a:hover::after {
  width: 100%;
}}

.encabezado-derecha a:hover {
  color: var(--turquesa-suave);
}
/* SUBMENU */
.submenu {
  position: relative;
  color: var(--negro);
}

.submenu > a {
  cursor: pointer;
}

.submenu-list {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: var(--crema);
  border-radius: 6px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.submenu-list.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.submenu-list li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--negro);
  text-decoration: none;
  white-space: nowrap;
}

.submenu-list li a:hover {
  background-color: var(--turquesa-suave);
  color: var(--crema);
}


/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(90deg, #8bd5d1, #c5eae8);
  gap: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero-img {
  max-width: 300px;
  margin: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-img:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.hero-text {
  flex: 1;
  min-width: 250px;
  max-width: 600px;
}

.hero-text h1 {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeSlideIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  background-color: var(--verde-principal);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 5px;
}

/* SECCIONES */
section {
  padding: 1.5rem 0;
}

section h2 {
  font-size: 2.5rem;
}

.section-limitada {
  max-width: 1000px;
  margin: 0 auto;
}

.justify {
  text-align: justify;
}

.frase-destacada {
  background-color: var(--turquesa-suave);
  padding: 30px 40px;
  margin-top: 30px;
  border-left: 6px solid var(--verde-oscuro);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 1.rem;
}

/*GALERIA*/
.gallery-seccion {
  margin-bottom: 3rem;
}

.gallery-seccion h3 {
  background: var(--turquesa-suave);
  padding: 0.5rem 1rem;
  text-align: right;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--negro);
}

.gallery-slider {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding: 5rem;
}

.slide-track {
  display: inline-flex;
  gap: 1rem;
}

.slide-track img {
  height: 300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-track img:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.especialidad-intro {
  text-align: center;
  font-size: 2.5rem;
  color: var(--verde-principal);
}

.especialidades h4 {
  font-size: "Poppins", sans-serif;
}

/*ESPECIALIDAD*/
.especialidades {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background-color: #e0f5f1;
  border-radius: 0.6rem 2rem;
  padding: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  z-index: 999;

}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.card.open {
  background-color: #c1ebe5;
  z-index: 999;
}


.card .desglose {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 0;
  background: mintcream;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
  text-align: left;
}

.card.open .desglose {
  display: block;
}

/*HABILIDADES Y EMPRENDIMIENTO*/
.skills, .emprendimiento {
  background-color: var(--turquesa-suave);
  padding: 2rem;
  border-radius: 20px;
  margin-top: 3rem;
  position: relative;
  z-index: 0;
}

.skills-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
}

.skills-icons img {
  height: 50px;
  transition: transform 0.3s ease;
}

.skills-icons img:hover {
  transform: scale(1.1);
}

.emprendimiento-img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* FORMULARIO */
.contacto-formulario {
  max-width: 600px;
  margin: 4rem auto;
  padding: 3rem;
  background-color: var(--turquesa-suave);
  border-radius: 12px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
}

.contacto-formulario label {
  display: block;
  margin: 0.75rem 0 0.25rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 98%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.mensaje-enviado {
  display: none;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* BOTONES */
.btn {
  background-color: var(--verde-principal);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--verde-oscuro);
  transform: scale(1.05);
}

/* PIE DE PÁGINA */
footer {
  background-color: var(--verde-oscuro);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.scroll-top {
  margin-bottom: 1rem;
}

.volver-inicio {
  text-align: center;
  margin-top: 2rem;
}

/*SCROLL*/
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-bonita {
  scrollbar-width: thin;               /* Firefox */
  scrollbar-color: #b2e3e0 transparent; /* Firefox */
  overflow: auto;                      /* Asegura que haya scroll si es necesario */
}

/* Webkit (Chrome, Safari, Edge) */
.scroll-bonita::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scroll-bonita::-webkit-scrollbar-thumb {
  background-color: #7ebeba;
  border-radius: 10px;
}

.scroll-bonita::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-bonita::-webkit-scrollbar-button {
  display: none; /* Elimina los botones de desplazamiento */
}


[id]{
  scroll-margin-top: 5rem; /* Ajusta según el alto de tu header */
}

