* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Saira Condensed', Arial, sans-serif;
}

/* Header Styles */
.main-header {
  width: 100%;
  background-image: url('assets/images/Kennaline Web_fondo_header.png');
  background-size: cover;
  background-position: center;
  padding: 0;
  position: relative;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 180px;
  width: 100%;
}

.logo-container {
  /* width: 250.5px; */
  /* height: 62.25px; */
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
}

.logo-container img {
  height: clamp(46.5px, calc(62 / 1920 * 100vw), 62px);
}

.main-nav {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('assets/images/Kennaline Web_fondo_navbar.png');
  width: 1070.25px;
  height: 78px;
  right: 0;
  bottom: -39px;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 45px;
  height: 21px;
}

.nav-link-area {
  height: 21px;
  cursor: pointer;
}

.nav-link-area img {
  height: 21px;
  width: auto;
  display: block;
}

@media (max-width: 1760px) {
  .home .main-nav {
    width: 1006.035px;
    height: 73.32px;
    bottom: -36.66px;
  }
  
  .home .nav-menu-wrapper {
    gap: 42.3px;
    height: 19.74px;
  }
  
  .home .nav-link-area {
    height: 19.74px;
  }
  
  .home .nav-link-area img {
    height: 19.74px;
  }
}

@media (max-width: 1600px) {
  .home .main-nav {
    width: 920.415px;
    height: 67.08px;
    bottom: -33.54px;
  }
  
  .home .nav-menu-wrapper {
    gap: 38.7px;
    height: 18.06px;
  }
  
  .home .nav-link-area {
    height: 18.06px;
  }
  
  .home .nav-link-area img {
    height: 18.06px;
  }
}

/* Hero Section Styles */
.hero-section {
  width: 100%;
  height: calc(100svh - 180px);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  z-index: 2;
}

/* Overlay oscuro para slide 1 */
.hero-overlay-dark {
  opacity: 0.7;
  background: #000;
}

/* Overlay con degradado para slides 2, 3 */
.hero-overlay-gradient {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(320px, calc(762 / 1920 * 100vw), 762px);
  height: 100%;
  z-index: 3;
}

.hero-slogan-img {
  position: absolute;
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Slogan 1: 762x375 - Proporción: 2.032 */
.hero-slogan-1 {
  width: clamp(320px, calc(762 / 1920 * 100vw), 762px);
  height: clamp(157.48px, calc(375 / 1920 * 100vw), 375px);
}

/* Slogan 2: 771x375 - Proporción: 2.056 */
.hero-slogan-2 {
  width: clamp(320px, calc(771 / 1920 * 100vw), 771px);
  height: clamp(155.64px, calc(375 / 1920 * 100vw), 375px);
}

/* Slogan 3: 695x276 - Proporción: 2.521 */
.hero-slogan-3 {
  width: clamp(320px, calc(695 / 1920 * 100vw), 695px);
  height: clamp(126.94px, calc(276 / 1920 * 100vw), 276px);
}

.hero-slogan-img.active {
  opacity: 1;
}

.contacto {
  position: relative;
  width: 100%;
  height: clamp(300px, calc(520.5 / 1920 * 100vw), 520.5px);
}

.contacto-bg {
  width: 100%;
  height: clamp(300px, calc(520.5 / 1920 * 100vw), 520.5px);
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('assets/images/Kennaline Web_contacto_footer_fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: clamp(300px, calc(520.5 / 1920 * 100vw), 520.5px);
  position: relative;
  z-index: 1;
  gap: clamp(30px, calc(67.5 / 1920 * 100vw), 67.5px);
}

.contacto-banner-wrapper {
  position: relative;
  width: clamp(146.8px, calc(460.5 / 1920 * 100vw), 460.5px);
  height: clamp(33px, calc(103.5 / 1920 * 100vw), 103.5px);
}

.contacto-banner {
  display: flex;
  align-items: center;
  width: clamp(146.85px, calc(460.5 / 1920 * 100vw), 460.5px);
  height: clamp(33px, calc(103.5 / 1920 * 100vw), 103.5px);
  position: absolute;
  top: 0;
  left: 0;
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
  background-image: url('assets/images/Kennaline Web_contacto_footer_fondo_contacto.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.contacto-text {
  width: clamp(70.41px, calc(207.75 / 1920 * 100vw), 207.75px);
  height: clamp(14px, calc(41.25 / 1920 * 100vw), 41.25px);
  background-image: url('assets/images/Kennaline Web_contacto_footer_contacto.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.contacto-datos {
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
}

.contacto-datos p {
  margin: 0;
  padding: 0;
  font-family: 'Saira Condensed', Arial, sans-serif;
  font-size: clamp(20px, calc(36 / 1920 * 100vw), 36px);
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
}

.logo-whatsapp,
.logo-telefono {
  display: inline-block;
  align-items: center;
  width: clamp(14px, calc(28 / 1920 * 100vw), 28px);
  height: clamp(14px, calc(28 / 1920 * 100vw), 28px);
  margin-right: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.logo-whatsapp {
  background-image: url('assets/images/logo_whatsapp.png');
}

.logo-telefono {
  background-image: url('assets/images/logo_telefono.png');
}

/* Botón hamburguesa - oculto por defecto */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
  justify-content: center;
  align-items: center;
}

.hamburger-btn .hamburger-icon {
  width: 36px;
  height: 25px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  transform-origin: center center;
  object-fit: contain;
}

/* El botón hamburguesa se mantiene igual cuando el menú está abierto */

/* Menú móvil */
.mobile-menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  max-width: 400px;
  height: 100%;
  z-index: 999;
  transition: left 0.3s ease, visibility 0s linear 0.3s;
  visibility: hidden;
}

.mobile-menu.active {
  left: 0;
  visibility: visible;
  transition: left 0.3s ease, visibility 0s linear 0s;
}

.mobile-menu-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/Kennaline Movil_movil_menu_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.mobile-menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  position: relative;
  background: transparent;
  border: none;
  color: #000;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  padding: 0;
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
  display: flex;
  align-items: center;
  height: 180px;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-list li {
  border-bottom: 1px solid #000;
}

.mobile-menu-list li:first-child {
  border-top: 1px solid #000;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-menu-link img {
  height: 21px;
  width: auto;
  display: block;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive - Menú móvil para pantallas menores a 1440px */
@media (max-width: 1440px) {
  /* Mostrar botón hamburguesa */
  .hamburger-btn {
    display: flex;
    padding-left: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
    order: 1;
  }

  /* Ocultar menú principal */
  .main-nav {
    display: none;
  }

  /* Ajustes del header para móvil */
  .header-container {
    height: 180px;
    padding: 0;
    justify-content: space-between;
  }

  .logo-container {
    padding-left: 0;
    padding-right: clamp(30px, calc(116.5 / 1920 * 100vw), 116.5px);
    order: 2;
  }
}

@media (max-width: 1080px) {
  /* Ajustes del hero para móvil */
  .hero-content {
    width: clamp(320px, calc(762 / 1440 * 100vw), 762px);
  }
  
  .hero-slogan-img {
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }
  
  /* Slogan 1: 762x375 en móvil - Proporción: 2.032 */
  .hero-slogan-1 {
    width: clamp(320px, calc(762 / 1440 * 100vw), 762px);
    height: clamp(157.48px, calc(375 / 1440 * 100vw), 375px);
  }
  
  /* Slogan 2: 771x375 en móvil - Proporción: 2.056 */
  .hero-slogan-2 {
    width: clamp(320px, calc(771 / 1440 * 100vw), 771px);
    height: clamp(155.64px, calc(375 / 1440 * 100vw), 375px);
  }
  
  /* Slogan 3: 695x276 en móvil - Proporción: 2.521 */
  .hero-slogan-3 {
    width: clamp(320px, calc(695 / 1440 * 100vw), 695px);
    height: clamp(126.94px, calc(276 / 1440 * 100vw), 276px);
  }

  /* Ajustes del banner de contacto para móvil */
  .contacto-banner-wrapper {
    width: clamp(130.56px, calc(409.5 / 1440 * 100vw), 409.5px);
    height: clamp(33px, calc(103.5 / 1440 * 100vw), 103.5px);
  }

  .contacto-banner {
    width: clamp(130.56px, calc(409.5 / 1440 * 100vw), 409.5px);
    height: clamp(33px, calc(103.5 / 1440 * 100vw), 103.5px);
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
    background-image: url('assets/images/Kennaline Movil_footer_contacto_banner.png');
  }

  .contacto-text {
    width: clamp(70.41px, calc(207.75 / 1440 * 100vw), 207.75px);
    height: clamp(14px, calc(41.25 / 1440 * 100vw), 41.25px);
  }

  .contacto-datos {
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: calc(100svh - 140px);
  }

  /* Cambiar imágenes a versión móvil */
  .hero-slide[data-slide="1"] {
    background-image: url('assets/images/Kennaline Movil_home_image1.png') !important;
  }
  
  .hero-slide[data-slide="2"] {
    background-image: url('assets/images/Kennaline Movil_home_image2.png') !important;
  }
  
  .hero-slide[data-slide="3"] {
    background-image: url('assets/images/Kennaline Movil_home_image3.png') !important;
  }
  
  .hero-slide {
    background-position: center center;
  }

  /* Reducir tamaños del menú móvil */
  .hamburger-btn .hamburger-icon {
    width: 28px;
    height: 20px;
  }

  .logo-container img {
    height: clamp(42px, calc(50 / 768 * 100vw), 50px);
  }

  .mobile-menu-close {
    font-size: 40px;
    height: 140px;
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }

  .mobile-menu-link {
    padding: 15px 12px;
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }

  .mobile-menu-link img {
    height: 18px;
  }

  .header-container {
    height: 140px;
  }

  /* Ajustes del banner de contacto para mobile */
  .contacto-banner {
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }

  .contacto-datos {
    padding-left: clamp(30px, calc(82.5 / 1440 * 100vw), 82.5px);
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: clamp(20px, calc(30 / 1920 * 100vw), 30px);
  right: clamp(20px, calc(30 / 1920 * 100vw), 30px);
  width: clamp(60px, calc(70 / 1920 * 100vw), 70px);
  height: clamp(60px, calc(70 / 1920 * 100vw), 70px);
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: clamp(35px, calc(40 / 1920 * 100vw), 40px);
  height: clamp(35px, calc(40 / 1920 * 100vw), 40px);
}

@media (max-width: 1080px) {
  .whatsapp-float {
    bottom: clamp(20px, calc(30 / 1440 * 100vw), 30px);
    right: clamp(20px, calc(30 / 1440 * 100vw), 30px);
    width: clamp(60px, calc(70 / 1440 * 100vw), 70px);
    height: clamp(60px, calc(70 / 1440 * 100vw), 70px);
  }

  .whatsapp-float img {
    width: clamp(35px, calc(40 / 1440 * 100vw), 40px);
    height: clamp(35px, calc(40 / 1440 * 100vw), 40px);
  }
}
