/* === RESET GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Title1';
  src: url('title1.otf');
}

@font-face {
  font-family: 'Title2';
  src: url('title2.otf');
}
@font-face {
  font-family: 'Title2';
  src: url('title2.ttf');
}

@font-face {
  font-family: 'Title3';
  src: url('title3.ttf');
}

:root{
  --primary-color: #1e2a38;
  --secondary-color : #000080;
  --white-color: #ffffff;
  --gray-color: #f0f0f0;
  --accent-color: #00e0c5;
  --red-color: #790418;

  --primary-text-color: #222222;
  --secondary-text-color: #ffffff; 
  --font-size-p: 14px;
  --font-size-title: 26px;
  --font-size-subtitle: 20px;


  --linear-gradient-white : linear-gradient(135deg, #ffffff 0%, #dae8ff 50%);
  --linear-gradient-right-blue: linear-gradient(to right, var(--primary-color) 60%, #131325);
  --linear-gradient-left-blue: linear-gradient(to left, var(--primary-color), #000030);
  --linear-gradient-bottom-red: linear-gradient(to bottom , #000000, #000000 70%);

}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #333333;
  overflow-x: hidden;
  line-height: 1.6;
  background: linear-gradient(135deg, #030a0d, #17262b, #0e1214);
}

.fondo-iconos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.icono {
    position: absolute;
    opacity: 0.2;
    will-change: transform, opacity;
    animation: flotar 10s ease-in-out infinite, girar 25s linear infinite;
}

@keyframes flotar {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🏗 Estilos generales del header */
.header__container {
    background: var(--linear-gradient-right-blue);
    color: var(--secondary-text-color);
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 📌 Parte superior */
.header__top ,
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 5px;
}

.header__contact {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

.header__contact-link {
    color: var(--secondary-text-color);
    text-decoration: none;
}

.header__contact-link i {
    color: var(--secondary-text-color);
    padding-right: 10px;
}

.header__social {
    display: flex;
    gap: 10px;
}

.header__social-link i {
    color: var(--secondary-text-color);
    font-size: 20px;
    padding-right: 10px;
}

.header__social-link i:hover {
    color: var(--red-color);
}

/* 📌 Parte inferior */
.header__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: var(--white-color);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--linear-gradient-right-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: var(--font-size-title);
    font-weight: bold;
}

.header__logo-img {
    height: 70px;
}
.header__logo-text {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* 📌 Menú de navegación */
.header__nav {
    text-align: center;
}

.header__menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.header__menu-item {
    position: relative;
    padding: 0 10px;
}

.header__menu-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-p);
    font-weight: bolder;
}
.header__menu-link:hover {
    color: var(--red-color);
}

/* 📌 Submenú */
.header__submenu {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    background: var(--white-color);
    list-style: none;
    padding: 10px;
    min-width: 150px;
}

.header__menu-item--dropdown:hover .header__submenu {
    display: block;
}

.header__submenu-item {
    padding: 5px 0;
}

.header__submenu-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-p);
    font-weight: bolder;
}

.header__submenu-link:hover {
    color: var(--red-color);
}

/* 📌 Icono del Menu y animacion*/
.header__hamburgerMenu {
    display: none;
    background-color: transparent;
	height: 30px;
	width: 30px;
	padding: 20px;
  margin-right: 15px;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0.05, 1.04, 0.72, 0.98);
	transition: transform 0.25s cubic-bezier(0.05, 1.04, 0.72, 0.98);
	z-index: 1002;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none
}

.header__hamburgerMenu.is-active{
    background: none;
}

._layer{
	background: var(--white-color);
	margin-bottom: 4px;
	border-radius: 2px;
	width: 28px;
	height: 4px;
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-transition: all 0.25s cubic-bezier(0.05, 1.04, 0.72, 0.98);
	transition: all 0.25s cubic-bezier(0.05, 1.04, 0.72, 0.98);
}

.-top.is_active,
.-bottom.is_active {
    background: var(--primary-color);
}


.header__hamburgerMenu:hover .-top{
	-webkit-transform: translateY(-100%);
	-ms-transform: translateY(-100%);
	transform: translateY(-100%);
}

.header__hamburgerMenu:hover .-bottom{
	-webkit-transform: translateY(50%);
	-ms-transform: translateY(100%);
	transform: translateY(100%);
}
    
.header__hamburgerMenu.is-active .-top{
	-webkit-transform:translateY(200%) rotate(45deg) !important;
	-ms-transform:translateY(200%) rotate(45deg) !important;
	transform:translateY(200%) rotate(45deg) !important;
}

.header__hamburgerMenu.is-active .-mid{
	opacity:0;
}

.header__hamburgerMenu.is-active .-bottom{
	-webkit-transform: translateY(-200%) rotate(135deg) !important;
	-ms-transform: translateY(-200%) rotate(135deg) !important;
	transform: translateY(-200%) rotate(135deg) !important;
}

.header__nav.is_active{
    transform: translate3d(0px, 0px, 0px);
}

/* 📌 Estilos para móviles */
@media (max-width: 900px) {
    .header__hamburgerMenu {
        display: block;
    }
    .header__nav {
        background-color: rgba(255, 255, 255, 0.95);
        bottom: 0;
        height: 100%;
        left: 0;
        overflow-y: scroll;
        position: fixed;
        top: 0;
        transform: translate3d(0px, -100%, 0px);
        transition: transform 0.35s cubic-bezier(0.05, 1.04, 0.72, 0.98) 0s;
        width: 100%;
        z-index: 1001;
    }

    .header__menu {
        gap: 0px;
    }
    

    .header__submenu {
        display: block;
        position: relative;
        z-index: 1001;
        background: transparent;
        list-style: none;
        padding: 0 60px;
    }

    .header__menu {
        margin:0;
        padding:0;
        flex-direction: column;
    }

    .header__menu-item { 
        list-style: none;
        text-align: left;
        font-size: var(--font-size-title);
        color: var(--primary-color);
        text-transform: none;
        font-weight: bold;
        padding-left: 20px;
    }

    .header__menu-link{
      text-decoration: none;
      color: var(--primary-color);
    }

    .header__menu-link:hover{
      text-decoration: none;
      color: var(--secondary-color);
    }
}

@media (max-width: 650px) {
    .header__hamburgerMenu {
        position: absolute;
        right: 10px;
        vertical-align: center;
    }
    .header__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer__top {
      flex-direction: row;
      justify-content: space-between;
    }
    .header__contact {
        flex-direction: column;
        gap: 2px;
    }
}


/* === HEADER === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1e2a38;
  color: #ffffff;
  flex-wrap: wrap;
}

.logo {
  width: 180px;
  height: auto;
}

/* === NAVEGACIÓN === */
.navbar ul {
  display: flex !important;       /* Siempre visible */
  flex-direction: row;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #56cfe1;
}

/* === HERO === */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* sombra oscura */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Title1', sans-serif;
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero .btn {
  background-color: #56cfe1;
  color: #ffffff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #008c9e;
}

/* === TERRENOS === */
.terrain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-evenly;
  padding: 20px;
}

.terrain {
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-content: center;
  gap: 15px;
  transform: translateX(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.terrain.visible {
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 1.0s ease-out;
}

.terrain-card {
  width: 350px;
  height: 400px;
  perspective: 1000px;
}

.terrain-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.terrain-card:hover .terrain-inner {
  transform: rotateY(180deg);
}

.section-title {  
  font-size: 2.5rem;
  font-family: 'Title3';
  text-align: center;
  color: #ffffff;
  position: relative;
  margin-bottom: 2rem;
  font-weight: 500;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: #00796b;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* CARA FRONTAL */
.terrain-front,
.terrain-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.terrain-front {
  background-color: #ffffff;
}

.card-img {
  width: 100%;
  height: auto;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 12/8;
}

.terrain-content {
  padding: 20px;
}

.terrain-content h3 {
  font-family: 'Title1';
  margin: 0;
  font-size: 1.5em;
  color: #333333;
}

.terrain-content p {
  color: #555555;
  margin-top: 10px;
}

/* CARA POSTERIOR */
.terrain-back {
  background: #f0f7ff;
  transform: rotateY(180deg);
  padding: 20px;
  border-left: 6px solid #005d65;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terrain-back h3 {
  font-family: 'Title1';
  font-weight: 700;
  font-size:1.5em;
  color: #005d65;
  margin-bottom: 12px;
}

.terrain-back ul {
  list-style: none;
  padding-left: 0;
  color: #000000;
  font-weight: 500;
}

.terrain-back ul li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 10px;
  font-size: 18px;
}  hacer mas largas las tarjetas de largo por favor para que quepan mas informacion
/* === SERVICIOS EXPANDIBLES SIN JS === */
.services {
  padding: 60px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #ffffff; 
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  border: 2px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  background-color: #f9f9f9;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.service-card.visible {
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 1.0s ease-out;
}

.service-card[open] {
  border-color: #56cfe1;
}

.service-summary {
  list-style: none;
  padding: 16px;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background-color: #f0f7ff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.videos video,
.swiper-slide img{
  aspect-ratio: 12/8;
  width: 100%;
}

.service-card[open] .service-summary {
  background-color: #56cfe1;
  color: #ffffff;
}

.service-summary::-webkit-details-marker {
  display: none;
}

.service-details {
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

/* === AJUSTE DE VÍDEOS EN SERVICIOS === */
.service-details video {
  width: 100%;           /* Siempre ocupa todo el ancho del contenedor */
  max-width: 480px;      /* Límite razonable en escritorio */
  height: auto;          /* Mantiene la proporción */
  display: block;        /* Para centrar con margin auto */
  margin: 0 auto 16px;   /* Centrado horizontal y separación abajo */
}

@media (max-width: 768px) {
  .terrain-card {
    width: 300px;
  }
  .service-details video {
    max-width: none;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .service-details {
    padding: 12px;
  }

  .service-details video {
    max-width: 320px;
    margin-bottom: 8px;
  }
}


/* === CONTACTO === */
.contact {
  padding: 50px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333333;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #333333;
  border-radius: 5px;
  font-size: 1em;
}

.btn-sumary{
  margin-bottom: 10px;
}
.contact button {
  background-color: #56cfe1;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
}

.contact button:hover {
  background-color: #008c9e;
}

.contact_bottom {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: fit-content;
  display: flex;
  justify-content: center;

}

.contact_bottom .cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.blur_module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid #00e0c5;
  box-shadow: 0 0 15px rgba(194, 255, 249, 0.774);
  transform: translate(15px, -15px);
  z-index: -1;
}

.blur_module {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px 60px;
  margin: auto;
  max-width: 1100px;
  backdrop-filter: blur(8px);
  text-align: center;
  vertical-align: middle;
}

.blur_module h1,
.blur_module h2 {
  color: white;
  margin-bottom: 20px;
}

.contact_types {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 30px;
}

.contact_types > div {
  flex: 1;
  min-width: 280px;
  color: white;
}

.contact_types strong {
  display: block;
  margin-bottom: 15px;
  font-size: 20px;
}

.contact_types a.btn,
.contact_types button.btn,
.btn-sumary {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #00e0c5;
  color: #002e2b;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 40px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.contact_types a.btn:hover,
.contact_types button.btn:hover,
.btn-sumary:hover {
  background-color: #00bfae;
  color: #fff;
  cursor: pointer;
}

.contact_types i {
  margin-right: 10px;
}

/* WhatsApp form styles */
.contact_types form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact_types input,
.contact_types textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  resize: none;
}

.contact_types textarea {
  height: 80px;
}


/* === FOOTER === */
.footer {
  background-color: #1e2a38;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  width: 100%;
}

/* === MEDIA QUERIES === */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .blur_module{
    width: 80%;
    padding: 30px 15px;
  }
  .contact_types a.btn,
  .contact_types button.btn,
  .btn-sumary {
    margin: auto;
    width: 80%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
  }
  .contact_types form {
    width: 70%;
    margin: auto;
    align-items: center;
  }
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .more {
    height: 500px !important;
  }

  .logo {
    width: 200px;
    margin-bottom: 10px;
  }

  .navbar ul {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-top: 15px;
  }
}


@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}  

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



/* 🏗 Estilos generales del footer */
.footer__container {
    background: var(--linear-gradient-right-blue);
    color: var(--secondary-text-color);
    font-size: 14px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 📌 Parte superior */
.footer__top {
    font-weight: 300;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer__row {
    max-width: 25%;
    min-width: 170px;
    margin-right: 20px;
}

.footer__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--linear-gradient-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__logo-img {
    width: 250px;
    margin-right: 10px;
}

.footer__logo-text {
    font-size: var(--font-size-title);
    font-weight: bold;
}

.footer__title {
    font-size: var(--font-size-subtitle);
    font-weight: bold;
    margin-bottom: 10px;
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list li {
    margin-bottom: 5px;
}

.footer__list a {
    color: var(--secondary-text-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__list a:hover {
    color: #56cfe1;
}

.footer__social-links a {
    font-size: 35px;
    color: var(--secondary-text-color);
    margin-right: 10px;
    transition: color 0.3s;
}

.footer__social-links a:hover {
    color: #56cfe1;
}

/* 📌 Parte inferior */
.footer__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--linear-gradient-bottom-red);
    margin: 0;
    font-size: 13px;
}

/* 📱 Responsivo: pantallas pequeñas */
@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .footer__row {
      max-width: 100%;
      margin-bottom: 20px; 
      margin-left: 25px;
    }
    
    .footer__row p {
      max-width: 250px;
    }
    
    .footer__logo-text {
      font-size: 28px;
    }
    
    .footer__title {
      font-size: 20px;
    }

    .footer__show::after {
        content: " ▼";
        font-size: 14px;
    }

    .footer__show.open::after {
        content: " ▲"; 
    }
    
    .footer__list {
        display: none;
    }

    .footer__list.open {
        display: block;
    }

    .footer__list a {
        font-size: 16px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        padding: 10px;
    }
}

@media (min-width: 769px) {
    .footer__list {
        display: block;
    }
}

