/*    FONTS     */
@font-face {
  font-family: 'Aleo';
  src: url('/fonts/Aleo-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Available weights */
  font-style: normal;
}
@font-face {
  font-family: 'Aleo-italic';
  src: url('/fonts/Aleo-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

/*      GENERAL     */
body {
  font-family: 'Aleo', sans-serif;
  font-weight: 200;
  text-align: left;
  background-color: #f5f1e6; /* beige, estilo pergamino */
  margin: 0;
  padding: 0;
  height: 100%;
}
html {
  height: 100%;
  width: 100%;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*     HEADER LINKS     */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 100px;
  padding: 5px 30px;
  background-color: #f5f1e6; /* fondo beige */
  color: #004225; /* texto dark green */
}
.logo img {
  height: 50px;
  width: auto;
}
.navbar ul {
  list-style-type: none;
  display: flex;
}
.navbar ul li {
  margin-left: 20px;
}
.navbar ul li a {
  position: relative;
  color: #004225; /* texto dark green */
  text-decoration: none;
  font-size: 16px;
}
.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #004225; /* dark green */
  transition: width 0.4s ease-out;
}
.navbar ul li a:hover::after {
  width: 100%;
}
/* Mobile Dropdown Menu */
.navbar .dropdown {
  display: none;
  position: relative;
}
.navbar .dropdown button.dropbtn {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 200;
  color: #004225; /* dark green */
  cursor: pointer;
  display: flex;
  align-items: center;
}
/* The arrow styling for a bolder, wider "V" shape */
.arrow {
  margin-left: 13px;
  display: inline-block;
  font-weight: 500;
  transform: scaleX(1.8);
  transform-origin: center;
}
.navbar .dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f5f1e6; /* beige */
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}
.navbar .dropdown .dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #004225; /* dark green */
}
.navbar .dropdown .dropdown-content a:hover {
  background-color: #f1f1f1;
}
.navbar .dropdown.active .dropdown-content {
  display: block;
}

/*     MAIN CONTENT     */
h1 {
  color: #004225;
  font-family: 'Aleo', sans-serif;
  font-weight: 500;
  font-size: 60px;
}
h2 {
  color: #000000;
  font-size: 2em;
  font-weight: 300;
}
h1.header-page {
  margin: 0;
  text-align: left;
  font-weight: 500;
}
.custom-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #004225;
  text-underline-offset: 4px;
  color: inherit;
}
.custom-underline:hover {
  text-decoration-color: #004225;
  text-decoration-thickness: 2px;
}
h2.subheader-page {
  margin: 0;
  text-align: left;
}
/* Combined h3 rules */
h3 {
  color: #000000;
  font-size: 1.5em;
  font-weight: 200;
  text-align: left;
  margin-bottom: 20px;
}
h4 {
  color: #000000;
  font-size: 1.2rem;
  font-weight: 200;
  margin-bottom: 5px;
}
#index-titleblog {
  color: #000000;
  text-align: left;
}
.container-all {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3%;
  width: 100%;
}
.divider-main {
  height: 1px;
  background-color: #004225;
  margin: 20px 0 5% 0;
}

/*BLOG*/
.container-blog {
  margin: 0 auto;
}
.blog-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.blog-item {
  background-color: #e9f4ee;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease, border 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.blog-item:hover {
  background-color: #f0f0f0;
  border: 1px solid #004225;
}
.blog-item:hover .blog-description {
  color: #004225;
}
.blog-title {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 10px;
  text-align: left;
}
.blog-description {
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: left;
}
.blog-platform {
  font-size: 0.8rem;
  color: #000000;
  text-align: right;
}
.version {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Override for narrower screens */
@media screen and (max-width: 1024px) {
  .blog-item {
    max-width: calc(50% - 10px);
    flex: 1 1 calc(50% - 10px);
  }
}
@media screen and (max-width: 768px) {
  .container-blog {
    width: 100%;
    max-width: 100%;
  }
  .blog-item {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0;
  }
}

/*    COACHING   */
.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1000px;
  min-width: 400px;
  margin: 0 auto;
}
.column-coaching-left {
  border: 1px transparent #ffffff;
}
.container-coaching {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  margin-top: 5%;
  max-width: 100%;
}
.column-coaching-left,
.column-coaching-right {
  flex: 1;
  min-width: 250px;
}
.column-coaching-left {
  flex: 1 1 60%;
  text-align: left;
  max-width: 60%;
}
.column-coaching-right {
  flex: 1 1 40%;
  max-width: 40%;
}

/*CONTACT FORM*/
.contact-form-container {
  width: 100%;
  max-width: 100%;
  min-width: 250px;
  background-color: #e9f4ee;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 300;
  color: #000000;
  text-align: left;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: white;
  border: none;
  border-radius: 4px;
  background-color: gray;
  margin-top: 15px;
  margin-bottom: 5px;
  cursor: not-allowed;
}
button.enabled {
  background-color: #004225;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button.enabled:hover {
  background-color: #005233;
}
.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  display: none;
  z-index: 1000;
}

/*MEDIA AND SCREEN SIZE for COACHING*/
@media (max-width: 768px) {
  .container-coaching {
    flex-direction: column;
    align-items: center;
  }
  .column-coaching-left,
  .column-coaching-right {
    width: 100%;
    max-width: 600px;
  }
  .divider-main {
    width: calc(100% - 40px);
    max-width: 600px;
  }
}

/*     ABOUT      */
.container-about-first {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
.header-about-statement {
  flex: 0 0 60%;
  min-width: 200px;
  text-align: left;
}
.photo-about {
  display: flex;
  flex: 0 0 40%;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.photo-about img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 77% 20%;
  border-radius: 10px;  /* Aplica el radio en vista normal */
}
@media (max-width: 479px) {
  .photo-about img {
    border-radius: 0;  /* Quita el radio en vista mobile (0-479px) */
  }
}
@media (max-width: 768px) {
  .container-about-first {
    flex-direction: row;
  }
  .header-about-statement {
    max-width: 600px;
    min-width: 200px;
    text-align: center;
  }
  .photo-about {
    flex: 0 0 40%;
    justify-content: center;
    align-items: center;
  }
}
@media screen and (max-width: 479px) {
  .container-about-first {
    flex-direction: column;
    align-items: center;
  }
  .header-about-statement {
    width: 100%;
    min-width: 200px;
    text-align: left;
    margin-bottom: 20px;
    margin-left: 0px;
  }
  .photo-about, .photo-about img {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  .photo-about img {
    height: auto;
    object-fit: cover;
    object-position: initial;
  }
}
.container-about-second {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0;
  margin-top: 40px;
}
.about-title {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 400;
}
.detail-about-1 {
  border-right: 1px solid #004225;
  border-bottom: 1px solid #004225;
  padding-right: 20px;
  padding-bottom: 24px;
  text-align: left;
}
.detail-about-2 {
  border-right: 1px solid #004225;
  border-bottom: 1px solid #004225;
  padding: 0 20px 20px 20px;
  text-align: left;
}
.detail-about-3 {
  border-bottom: 1px solid #004225;
  padding-left: 20px;
  padding-bottom: 20px;
  text-align: left;
}
.detail-about-4 {
  border-right: 1px solid #004225;
  padding-right: 20px;
  padding-top: 20px;
  text-align: left;
}
.detail-about-5 {
  border-right: 1px solid #004225;
  padding: 20px;
  text-align: left;
}
.detail-about-6 {
  padding-left: 20px;
  padding-top: 20px;
  text-align: left;
}
.container-about-second > div {
  min-width: 0;
}
@media screen and (max-width: 768px) {
  .container-about-second {
    grid-template-columns: 1fr;
  }
  .container-about-second > div {
    border: none;
    border-bottom: 1px solid #004225;
    padding: 10px 20px;
    text-align: left;
    margin: 0;
  }
  .container-about-second > div:last-child {
    border-bottom: none;
  }
}

/*     FOOTER      */
.footer {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  background-color: #f5f1e6; /* fondo beige */
  color: #004225; /* texto dark green */
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 200px;
}
.name-link {
  display: block;
  text-align: right;
  width: 100%;
}
.name-link:hover {
  cursor: pointer;
}
.logo-footer {
  max-width: 200px;
  height: auto;
  display: inline-block;
}
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
}
.social-links a {
  position: relative;
  color: #004225; /* dark green */
  text-decoration: none;
  font-size: 1rem;
}
.social-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #004225; /* dark green */
  transition: width 0.4s ease-out;
}
.social-links a:hover::after {
  width: 100%;
}

/* New Mobile Modifications */
@media (max-width: 768px) {
  .navbar .dropdown {
    display: block;
    /* Ajusta aquí si es necesario */
  }
  .navbar ul {
    display: none;
  }
  .navbar .dropdown button.dropbtn {
    display: flex;
    align-items: center;
    height: 50px;
    /* Para alinear visualmente con el logo, ajusta este margin-top manualmente */
    margin-top: -5px;  /* Puedes modificar este valor hasta lograr la alineación deseada */
  }
  header {
    padding: 15px 10px 5px 10px;
  }
  .container-all {
    padding: 0 20px;
  }
  .footer {
    justify-content: center;
  }
  .footer-container {
    align-items: center;
  }
}

/* Sticky Footer for Desktop */
/* Solo aplica en desktop (min-width: 769px) para que, si el contenido no llena la pantalla, el footer quede pegado al fondo */
@media (min-width: 769px) {
  html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  /* Asegura que el contenedor principal crezca para empujar el footer abajo */
  .container-all {
    flex: 1;
  }
}