/**
* Template Name: Impact (Cleaned Version for Academia Wanderlust)
* Original Author: BootstrapMade.com
* Cleaned on: 2025-08-01
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors */
:root {
  --background-color: #ffffff;
  --default-color: #222222;
  --heading-color: #f4acd7;
  --accent-color: #f4acd7;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #ffffff;
  --nav-hover-color: #f4acd7;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #f4acd7;
  --nav-dropdown-hover-color: #f4acd7;
}

/* Color Presets */
.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #f4acd7;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #f4acd7;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #de43a0;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #e75baf;
  --heading-color: #ffffff;
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background-color: color-mix(in srgb, var(--accent-color) 90%, black 10%);
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

@media (max-width: 575px) {
  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: color-mix(in srgb, var(--contrast-color), transparent 40%);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .logo span {
  font-size: 32px;
  margin-left: 2px;
  color: var(--nav-hover-color);
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu > ul > li > a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-color);
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--default-color);
  border-color: var(--default-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--default-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable Aos Animation Delay On Mobile Devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 112px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 100px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-header, /* Added .section-header for politicas.html */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-header h2,
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-header h2:after,
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-header p,
.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Sections From index.html
--------------------------------------------------------------*/

/* inicio Section */
.inicio {
  width: 100%;
  position: relative;
  padding: 140px 0 0 0;
}

.inicio .container {
  position: relative;
  z-index: 3;
}

.inicio h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.inicio h2 .accent {
  color: var(--contrast-color);
}

.inicio p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 400;
  margin-bottom: 30px;
}

.inicio .btn-get-started {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  transition: 0.3s;
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.inicio .btn-get-started:hover {
  border-color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.inicio .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-weight: 600;
  color: var(--default-color);
}

@media (max-width: 640px) {
  .inicio h2 {
    font-size: 36px;
  }
}

.inicio .icon-boxes {
  padding-bottom: 60px;
  z-index: 4;
}

.inicio .icon-box {
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
  background: var(--background-color);
  box-shadow: 0 0 29px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  z-index: 1;
  height: 100%;
  text-align: center;
}

.inicio .icon-box .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}

.inicio .icon-box .title a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.inicio .icon-box .icon {
  margin-bottom: 20px;
  padding-top: 10px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 48px;
  line-height: 1;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.inicio .icon-box:hover .title a,
.inicio .icon-box:hover .icon {
  color: var(--accent-color);
}

/* About Section */
.about h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/* Clients Section */
.clients .swiper-slide img {
  transition: 0.3s;
}

.clients .swiper-slide img:hover {
  transform: scale(1.1);
}

/* Call To Action Section */
.call-to-action .container {
  padding-top: 80px;
  padding-bottom: 80px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.call-to-action .container img {
  position: absolute; /* Changed from fixed to absolute */
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action .container:before {
  content: "";
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container .content {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--contrast-color); /* Changed to contrast for dark bg */
}

.call-to-action p {
  margin-bottom: 20px;
  color: var(--contrast-color); /* Changed to contrast for dark bg */
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* Services Section */
.services .service-item {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 0 30px rgba(129, 0, 0, 0.1);
  height: 100%;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
  font-size: 56px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--heading-color), transparent 95%);
  border-radius: 50px;
  z-index: 1;
  top: 10px;
  right: -20px;
  transition: 0.3s;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid
    color-mix(in srgb, var(--heading-color), transparent 90%);
  transition: 0.3s;
}

.services .service-item:hover .icon i {
  color: var(--heading-color);
}

.services .service-item:hover .icon:before {
  background: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.services .service-item:hover h3 {
  border-color: color-mix(in srgb, var(--accent-color), transparent 10%);
  color: var(--heading-color);
}

/* Team Section */
.team .member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
}

.team .member img {
  border-radius: 15px;
}

.team .member h4 {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 2px;
  font-size: 20px;
}

.team .member span {
  font-style: italic;
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .member .social {
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Faq Section */
.faq .content h3 {
  font-weight: 400;
  font-size: 34px;
}

.faq .content p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/* Recent Posts Section */
.recent-posts article {
  background: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.recent-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.recent-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 10px;
}

.recent-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

/* Contact Section */
.contact .info-container {
  background-color: var(--accent-color);
  height: 100%;
  padding: 20px;
}

.contact .info-item {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--contrast-color), transparent 90%);
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--contrast-color), transparent 80%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  color: var(--contrast-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--contrast-color);
  color: var(--accent-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  padding: 30px;
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Tus Estilos Personalizados
--------------------------------------------------------------*/

/* Servicios desplegables */
.toggle-service {
  cursor: pointer;
}

.toggle-service .service-description {
  /* Eliminamos 'display: none;' y usamos estas propiedades para ocultar */
  opacity: 0;
  max-height: 0;
  visibility: hidden; /* Añadimos esto para asegurar que esté oculto */
  overflow: hidden;
  transition: all 0.3s ease-in-out; /* Una transición más estándar */
}

.toggle-service.active .service-description {
  /* Cambiamos .service-active por .active */
  /* Eliminamos 'display: block;' y usamos estas propiedades para mostrar */
  opacity: 1;
  max-height: 200px; /* Un valor alto para que quepa el texto */
  visibility: visible;
  margin-top: 15px;
}

/* Sección Inicio Personalizada (politicas.html) */
#inicio.inicio-section {
  padding: 6rem 0 2rem !important;
  position: relative;
  z-index: 1;
}

#inicio .custom-inicio-container {
  padding: 1rem 0;
  max-width: 1140px;
  margin: 0 auto;
}

#inicio .inicio-title {
  margin-bottom: 0.75rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

#inicio .inicio-subtitle {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #444;
}

#inicio .inicio-logo {
  max-width: 220px;
  width: 90%;
  height: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  #inicio.inicio-section {
    padding: 4.5rem 0 1.5rem !important;
  }
  #inicio .inicio-title {
    font-size: 1.8rem;
    text-align: center;
  }
  #inicio .inicio-logo {
    max-width: 180px;
    margin: 0 auto 1rem;
  }
  #inicio .inicio-subtitle {
    text-align: center;
    font-size: 1rem;
  }
}

/* Video de fondo (index.html) */
.custom-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
}

.custom-video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.custom-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Logo en el Header */
.logo-img {
  height: 60px;
  width: auto;
  max-height: 80px;
  transition: all 0.3s ease-in-out;
}

/* Logo en sección "Sobre Wanderlust" */
.logo-bloque {
  max-width: 450px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-top: 20px;
}

/* Pestañas de Políticas (politicas.html) */
.section .nav-tabs .nav-link {
  color: #6c757d;
  border-color: #dee2e6 #dee2e6 #fff;
  font-weight: 500;
}

.section .nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  color: #495057;
}

.section .nav-tabs .nav-link.active {
  color: #f4acd7;
  background-color: #fff;
  border-color: #f4acd7 #f4acd7 #fff;
  border-width: 2px;
  font-weight: 700;
}

/* ===================================================================
   ===== ESTILOS RESPONSIVE PARA MÓVILES (VERSIÓN FINAL UNIFICADA) =====
   =================================================================== */
@media (max-width: 768px) {
  /* --- 1. Tipografía General --- */

  /* Títulos de la sección de inicio (Welcome to...) */
  .inicio h2 {
    font-size: 36px;
  }

  /* Títulos de las demás secciones (Sobre Wanderlust, Cursos, etc.) */
  .section-title h2,
  .section-header h2 {
    font-size: 28px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  /* Subtítulos dentro de las secciones */
  h3 {
    font-size: 22px;
  }

  /* Títulos de las cajas de preparación de exámenes */
  .team .member h4 {
    font-size: 16px;
  }

  /* --- 2. Espaciado de Secciones --- */

  /* Reduce el espacio vertical en todas las secciones, MENOS en la del vídeo inicial */
  section:not(#inicio),
  .section:not(#inicio) {
    padding: 40px 0;
  }

  .section-title,
  .section-header {
    padding-bottom: 40px; /* Reduce el espacio bajo los títulos */
  }

  /* --- 3. Ajustes Específicos por Sección --- */

  /* Sección Inicio (Cajas de Iconos) */
  .inicio .icon-box {
    padding: 30px 20px;
  }
  .inicio .icon-box .icon {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .inicio .icon-box .title {
    font-size: 18px;
  }

  /* Sección Sobre Wanderlust */
  .about h3 {
    font-size: 24px;
    text-align: center;
  }
  .about .img-fluid {
    /* Reduce el tamaño de la foto de Yadira */
    max-width: 200px; /* Ajusta este valor si quieres que sea más grande o pequeña */
  }

  /* Sección Cursos (Services) */
  .services .service-item {
    padding: 30px;
  }
  .services .service-item h3 {
    font-size: 20px;
  }
  .services .service-item .icon {
    margin-bottom: 25px;
  }

  /* Sección Preparación de Exámenes Oficiales (Team) */
  .team .member {
    padding: 20px 15px;
  }
  .team .member img {
    max-width: 60%;
    height: auto;
    margin: 0 auto;
  }

  /* Sección "Habla directamente conmigo" (Call To Action) */
  .call-to-action .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .call-to-action h3 {
    font-size: 24px;
  }

  /* Sección Materiales (Recent Posts) */
  .recent-posts article {
    padding: 20px;
  }
  .recent-posts .post-img {
    margin: -20px -20px 15px -20px;
  }
  .recent-posts .post-img img {
    /* Reduce el tamaño de la imagen de "Materiales" */
    max-height: 180px; /* Limita la altura de la imagen */
    width: auto;
    margin: 0 auto; /* Centra la imagen si es más estrecha */
  }
  .recent-posts .title {
    font-size: 18px;
  }

  /* Sección FAQ */
  .faq .content {
    text-align: center;
    padding: 0 15px;
  }

  /* ===== AJUSTE PARA SECCIÓN DE CONTACTO EN MÓVILES ===== */
  .contact .info-container {
    height: auto; /* Permite que la altura se ajuste al contenido */
    padding: 20px;
  }

  .contact .php-email-form {
    padding: 20px; /* Reducimos un poco el padding para pantallas pequeñas */
  }

  /* --- 4. Footer --- */
  .footer .footer-about,
  .footer .footer-contact,
  .footer .footer-links {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }
}

/* ===================================================================
     ===== AJUSTES FINALES DE NAVEGACIÓN Y TOPBAR PARA MÓVILES =====
     =================================================================== */

/* --- 1. Topbar (Correo y Teléfono) --- */
@media (max-width: 575px) {
  /* Usamos un punto de quiebre más pequeño para ser más precisos */
  .header .topbar .contact-info {
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center; /* Centra los elementos apilados */
    gap: 5px; /* Añade un pequeño espacio entre el correo y el teléfono */
  }

  .header .topbar .contact-info i.ms-4 {
    margin-left: 0 !important; /* Elimina el margen izquierdo del teléfono que lo separaba antes */
  }
}

/* --- 2. Menú de Navegación Móvil (Evitar Recorte) --- */
@media (max-width: 1199px) {
  /* Se aplica a todas las vistas móviles donde aparece el menú hamburguesa */
  .navmenu ul {
    text-align: left;
  }

  .navmenu a {
    font-size: 15px; /* Reduce ligeramente el tamaño de la fuente para asegurar que quepa */
    padding: 12px 15px; /* Ajusta el padding para dar un poco más de espacio */
    white-space: normal; /* Permite que el texto largo pase a la siguiente línea */
  }
}

/* ===================================================================
// Lógica de Desplegable para la Sección de Cursos
// =================================================================== */

/* Por defecto, la descripción del curso está oculta */
.service-item .service-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

/* Cuando la caja del curso tiene la clase .active, la descripción se muestra */
.service-item.active .service-description {
  max-height: 200px; /* Un valor suficientemente grande para que quepa el texto */
  opacity: 1;
  visibility: visible;
  margin-top: 15px; /* Añade un pequeño espacio arriba */
}

/* Opcional: Cambia el color del título cuando está activo para dar feedback visual */
.service-item.active h3 {
  color: var(--accent-color);
}
