/* VARIABLES */
:root {
  --primary-color: #1F375B;
  --secondary-color: #808184;
  --light-color: #ffffff;
  --dark-color: #333333;
  --bg-dark: #1F375B;
  --font-family: 'Roboto', sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* BARRA SUPERIOR */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background-color: var(--secondary-color);
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.top-bar-info i {
  color: #ffd700;
  margin-right: 0.3rem;
}
.separator {
  margin: 0 0.3rem;
}

/* HEADER */
header {
  position: fixed;
  top: 35px;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 2px solid #e1e1e1;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 80px;
  width: auto;
  transition: transform 0.3s;
}
.logo img:hover {
  transform: scale(1.05);
}
nav {
  position: relative;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-menu li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu li a:hover {
  color: var(--secondary-color);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .hamburger {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.nav-toggle .hamburger::before {
  top: -8px;
}
.nav-toggle .hamburger::after {
  top: 8px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn:hover {
  background: #16294A;
}

/* SECCIONES GENERALES */
.section {
  padding: 80px 0;
  margin-top: 120px;
  text-align: center;
}
.section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.section p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* ANIMACIONES */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* QUIÉNES SOMOS */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.content-grid .text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}
.content-grid .image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.content-grid .image img {
  max-width: 100%;
  border-radius: 8px;
}

/* SECCIÓN: DIFERENCIAS (HEXÁGONOS) */
.bg-light {
  background-color: #f1f1f1;
}
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.hex-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px; 
  min-height: 200px; 
  text-align: center;
}
.hex-shape {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1F375B, #4A5C82);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 
                     75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.hex-shape img {
  width: 60%; 
  height: auto;
  object-fit: contain;
}
.hex-shape:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.hex-item p {
  margin-top: 1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  text-align: center;
}
@keyframes hexBounce {
  0% {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.hex-animate {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s ease;
}
.hex-animate.show {
  animation: hexBounce 0.8s ease-out forwards;
}

/* CARRUSEL DE SERVICIOS */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 40px;
}
.carousel-inner {
  display: flex;
  transition: transform 0.8s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 40px 60px;
}
.service-title {
  text-align: center;
  margin-bottom: 15px;
}
.service-title h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
}
.service-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* CONTENEDOR DE "SERVICIOS OFRECIDOS" E IMAGEN */
.service-offers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}
.offers-list {
  flex: 1;
  text-align: left;
}
.offers-list ul {
  list-style: none; /* Quita los puntos por defecto */
}

.offers-list p {
  margin-bottom: 0.5rem;
}
.offers-list ul {
  margin-top: 0;
  padding-left: 1.5rem;
}
.offers-list ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 30px;
}
.offers-list ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}
.offers-image {
  flex: 0 0 auto;
  text-align: center;
  margin-right: 40px; 
}
.offers-image img {
  width: 350px;
  display: block;
  margin: 0 auto;
  border-radius: 100% / 100%;
  object-fit: circle;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}
.offers-image img:hover {
  transform: scale(1.05);
}

/* FLECHAS DEL CARRUSEL */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 10px;
  z-index: 10;
}
.carousel-controls button {
  pointer-events: all;
  background-color: rgba(31,55,91,0.8);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
.carousel-controls button:hover {
  background-color: rgba(31,55,91,1);
  transform: scale(1.1);
}

/* SECCIÓN DE CONTACTO (SIN FORMULARIO) */
.contact-section {
  background: #f4f7f9;
  padding: 100px 0;
  position: relative;
}
.contact-header {
  text-align: center;
  margin-bottom: 50px;
}
.contact-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #1F375B;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-header p {
  font-size: 1.2rem;
  color: #666;
}
/* Ajustamos .contact-wrapper a una sola columna */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 40px; /* Ajuste para que se vea centrado */
}
.contact-info {
  background: none; /* Ya no es la columna azul */
  color: #333;
  border: none;
  text-align: center;
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #1F375B;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.contact-info li {
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra icono y texto */
}
.contact-info li i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #ffcc00;
}
/* Botón de WhatsApp */
.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s, transform 0.3s;
}
.btn-wsp:hover {
  background: #20b358;
  transform: scale(1.05);
}
.btn-wsp i {
  font-size: 1.2rem;
}

/* FOOTER */
footer {
  background: var(--primary-color);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.social-icons {
  margin-top: 1rem;
}
.social-icons a {
  color: var(--secondary-color);
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #fff;
}

/* BOTÓN "BACK TO TOP" */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  z-index: 999;
}
.back-to-top:hover {
  background: #16294A;
  transform: translateY(-3px);
}
.back-to-top.show {
  display: flex;
}

/* ANIMACIONES EXTRAS */
.btn-pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.float-anim {
  animation: float 3s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* RESPONSIVE (max-width: 768px) */
@media (max-width: 768px) {
  header {
    top: 0;
  }
  .top-bar {
    display: none;
  }
  .section {
    margin-top: 80px;
  }
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-left: 2px solid #e1e1e1;
    width: 200px;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    margin: 1rem 0;
    text-align: center;
  }
  .carousel-item {
    padding: 70px 20px;
  }
  .carousel-controls {
    top: auto;
    bottom: 30px;
    transform: none;
    padding: 0;
    justify-content: center;
    gap: 50px;
  }
  .service-offers {
    flex-direction: column;
    align-items: center;
  }
  .offers-image {
    margin-right: 0;
  }
  .offers-image img {
    margin-bottom: 1rem;
  }
  .offers-list {
    width: 100%;
  }
  .hex-item {
    width: 130px;
    min-height: 170px;
  }
  .hex-shape {
    width: 80px;
    height: 80px;
  }
  .hex-shape img {
    width: 50%;
  }
  .contact-wrapper {
    padding: 20px;
  }
}
