:root {
  --primary-color: #ff0045; /* Identidad, CTA principal */
  --primary-color-hover: #ff6d94; /* Identidad, CTA principal */
  --secondary-color: #6c757d; /* Elementos de baja jerarquía */
  --success-color: #00c851; /* Éxito / Confirmación */
  --error-color: #dc3545; /* Error / Peligro */
  --warning-color: #ffc107; /* Advertencia / Precaución */
  --info-color: #17a2b8; /* Informativo / Enlaces secundarios */

  --background-light: #f4f7f9; /* Fondo de tema claro */
  --background-dark: #121923; /* Fondo de tema oscuro */

  --text-dark: #343a40; /* Texto principal sobre fondo claro */
  --text-light: #ffffff; /* Texto principal sobre fondo oscuro */
  --text-grey: #cdcecf; /* Texto principal sobre fondo oscuro */
  --text-grey-dark: #5e697b; /* Texto secundario sobre fondo oscuro */
  --border-color: #040405;
  --border-color-dark: #232c3a;

  --header-height: 7vh;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Ubuntu", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--background-dark);
  padding-top: var(--header-height);

  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color-hover);
  transition: background-color 0.5s, color 0.5s;
}

/* HEADER */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #121923;
  background: linear-gradient(180deg, #121923cc 25%, #0e131b 100%);
  backdrop-filter: blur(5px);
  padding: 25px 0px 10px 0px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color-dark);
}

.app-logo {
  height: 22px;
  margin-right: 20px;
}

.app-logo-iso {
  height: 16px;
  margin-bottom: -4px;
}

/* NAV */
.desktop-nav a {
  color: var(--secondary-color);
  text-decoration: none;
  margin-left: 25px;
  font-size: 1rem;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: var(--primary-color);
}
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 102;
}

.hamburger {
  width: 26px;
  height: 2px;
  background-color: var(--secondary-color);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -10px;
}

.hamburger::after {
  top: 10px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-button-acces {
  background-color: var(--border-color-dark);
  padding: 8px 12px 8px 12px;
  font-size: 0.8rem !important;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.nav-button-acces:hover {
  background-color: var(--primary-color);
  color: var(--text-grey) !important;
}

/* CONTENIDO */

main {
  width: 100%;
  max-width: 960px;
  padding: 0;
  margin-top: 40px;
}

main h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  line-height: 3rem;
}

.up-arrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.up-arrow a:hover {
  transform: none;
}

.up-arrow svg {
  height: 20px;
  stroke: #263041;
}

.btn-acceso {
  background-color: var(--primary-color); /* Botón rojo */
  color: var(--secondary-color) !important;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 30px;
  text-transform: uppercase;
}

.hero-slider-section {
  min-height: 400px;
  height: 86vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.swiper-slide {
  display: flex !important;
  justify-content: center;
}

.slide {
  height: 100%;
  background-repeat: no-repeat;
  /* background-color: #0e151e; */
  background: linear-gradient(0deg, #070c12 0%, #121923 100%);
  border-bottom: 1px solid var(--border-color-dark);

  display: flex !important;
  flex-direction: row;
  align-items: stretch;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.slide h1 {
  color: var(--text-grey);
  text-align: left;
  font-size: 3.5rem;
  line-height: 4rem;
  text-shadow: 0px 0px 14px #0e151e8c;
}

.slide p {
  color: var(--text-grey-dark);
  font-size: 1.5rem;
  padding-bottom: 4vh;
}

.slide-box-info {
  padding: 2vw;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  /* border: 1px solid #e4269b; */
}

.slide-box-img {
  display: block;
  height: 70vh;
  top: 10vh;
  position: relative;
  /* border: 1px solid #26e43f; */
}

.swiper-button-next:after,
.swiper-button-prev:after {
  margin-top: 200px;
}

.btn-contactar {
  background-color: var(--primary-color);
  color: var(--text-grey);
  text-decoration: none;
  padding: 5px 25px 5px 25px;
  border-radius: 25px;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-contactar:hover {
  color: var(--border-color-dark);
  background-color: var(--secondary-color);
}
.content-section,
.contact-section {
  padding: 1vw;
  margin: 1vw;
  border-radius: 10px;
  /* background-color:#0000002c; */
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* BOTONES Y PUNTOS DEL SLIDE */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  --swiper-navigation-size: 40px;
}

.swiper-pagination-bullet {
  width: 45px !important;
  height: 5px !important;
  border-radius: 5px !important;
  background: #ffffff99 !important;
  opacity: 1;
  margin: 0 4px !important;
  display: inline-block;
  transition: all 0.5s ease;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 60px !important;
  height: 5px !important;
}

/* SECCIÓN DE SERVICIOS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1vw;
  padding-top: 20px;
  margin: 0 auto;
  max-width: 1200px;
  border-top: 1px solid #333a47;
  margin-top: 20px;
}

.services-grid h2 {
  font-size: 1.4rem;
  line-height: normal;
  color: var(--text-grey-dark);
  font-weight: 100;
}

.service-card {
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 15px #00000023;
  background-color: #00000023;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: #273241;
  background: linear-gradient(55deg, #121923cc 25%, #273241 100%);
  box-shadow: 0 4px 15px #00000049;
}

.card-icon-placeholder {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #333a47;
  transition: border-bottom-color 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.service-card:hover .card-icon-placeholder {
  border-bottom-color: var(--primary-color);
}

.card-title {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 5px 20px 5px 20px;
  font-weight: 600 !important;
  font-size: 1.7rem;
  text-align: left;
  line-height: normal !important;
  color: var(--primary-color) !important;
}

.card-description {
  margin: 10px 20px 10px 20px;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.section-whatsapp {
  width: 100%;
  height: 200px;
  padding: 60px 0 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed var(--border-color-dark);
  border-bottom: 1px dashed var(--border-color-dark);
  background-color: #0e151e;
  background-image: url("../../images/whatsapp-back.webp");
}

.section-whatsapp a,
h1 {
  font-size: 2.5rem;
  color: var(--text-grey);
  display: flex;
}
.section-whatsapp svg {
  width: 50px;
  height: 50px;
  fill: #25d366;
  transition: transform 0.3s ease;
  margin-right: 20px;
  margin-bottom: 18px;
}

/* FOOTER */

footer {
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0 auto;
  border-top: 1px dashed var(--border-color-dark);
}

footer ul {
  list-style-type: none;
}
footer li {
  padding: 0 0 18px 10px;
}

footer a {
  color: var(--text-grey-dark);
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease-out;
}

footer a:hover {
  transform: translateX(5px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.column1 {
  text-align: left;
  padding: 0 0 0 30px;
  flex: 1;
  min-width: 250px;
  grid-column: 1;
}

.column2 {
  text-align: left;
  flex: 1;
  padding: 0 0 0 30px;
  min-width: 250px;
  grid-column: 2;
  border-left: 1px solid var(--border-color-dark);
  border-right: 1px solid var(--border-color-dark);
}

.column2 p {
  margin-top: 10px;
  color: var(--text-grey-dark);
  padding: 0 20px 0 10px;
}

.column3 {
  text-align: left;
  flex: 1;
  padding: 0 0 0 30px;
  min-width: 250px;
  grid-column: 3;
}

.column h3 {
  margin-bottom: 15px;
}

.column3-checkbox {
  margin-top: 10px;
  color: var(--text-grey-dark);
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  padding: 10px;
}

/* CONTACT FORM */

/* Estilos generales de los campos del formulario */
.footer-form-container input[type="text"],
.footer-form-container input[type="email"],
.footer-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #1a222c; /* Fondo oscuro, similar al footer */
  color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

.footer-form-container textarea {
  resize: vertical;
}

.footer-form-container .btn-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  transition: background-color 0.3s;
}

.footer-form-container .btn-submit:hover {
  background-color: #ff3366;
}

/* Mensajes de estado (Éxito/Error) */
#form-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

#form-message.success {
  background-color: #28a745; /* Verde */
  color: #fff;
}

#form-message.error {
  background-color: #dc3545; /* Rojo */
  color: #fff;
}

.footer-bottom {
  color: var(--text-grey-dark);
  text-align: center;
  font-size: 10pt;
  line-height: 1.8rem;

  padding-top: 20px;
  margin-bottom: 50px;
  border-top: 1px dashed var(--border-color-dark);
  grid-column: 1 / -1;
}

.footer-bottom a:hover {
  transform: none;
}

.footer-arrow {
  height: 0.7rem;
  fill: var(--primary-color);
  margin-right: 5px;
}

.whatsapp-button {
  position: fixed;
  bottom: 40px;
  right: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
}
.whatsapp-button svg {
  width: 70px;
  height: 70px;
}

/* UTILIDADES */
.mobile-display-none {
  display: block;
}

.mobile-display-block {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  /* HEADER */
  .main-header {
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 30px;
  }

  .app-logo-iso {
    margin-bottom: -3px;
  }

  .menu-toggle {
    display: block;
    margin-top: 15px;
  }

  /* MENÚ FLOTANTE */
  .desktop-nav {
    position: fixed;
    width: 60vw;
    top: 1vh;
    right: 0;
    /* background: #121923; */
    background: linear-gradient(450deg, #121923 25%, #0e141d 100%);
    z-index: 101;
    border-radius: 4px;
    border: 1px solid #192331;
    padding: 35px 15px 20px 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  .desktop-nav.active {
    transform: translateX(0);
    margin-right: 2vw;
    text-align: center;
  }

  .desktop-nav a {
    padding: 8px 0 8px 0;
    margin: 8px 0 8px 0;
    border-bottom: 1px dotted var(--border-color-dark);
  }

  /* MAIN */

  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* SLIDER */
  .swiper-slide {
    display: block !important;
  }
  .slide {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3vh 3vh 1vh 3vh;
  }
  .slide h1 {
    font-size: 2.3rem;
    line-height: 3rem;
  }
  .slide p {
    font-size: 1.2rem;
    line-height: 2rem;
    padding-bottom: 1.5vh;
  }
  .slide-box-info {
    position: static;
    padding: 1vh 0 3vh 3vw;
  }
  .slide-box-img {
    position: static;
    height: auto;
    width: 85%;
    padding-left: 10%;
  }

  .section-whatsapp {
    height: auto;
    padding: 30px 0 30px 0;
    display: flex;
    flex-direction: column;
  }

  .section-whatsapp a,
  h1 {
    font-size: 2rem;
    flex-direction: column;
    text-align: center;
  }

  /* FOOTER */

  .footer-bottom {
    margin-bottom: 50px;
  }

  footer,
  .footer-columns {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .column1,
  .column2,
  .column3 {
    width: 100% !important;
    grid-column: auto !important;
    border: none !important;
    padding: 20px !important;
    display: block !important;
  }

  html,
  body {
    overflow-x: hidden;
    position: relative;
  }

  /* UTILIDADES */

  .mobile-display-none {
    display: none;
  }
  .mobile-display-block {
    display: block;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 40px;
  }

  .service-card {
    background-color: var(--background-dark);
    padding: 15px 0;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
