/* Paleta de Colores según Manual: Azul (#000014), Gris, Blanco [cite: 53, 56, 57, 58] */
:root {
  --primary-blue: #000014;
  --accent-blue: #003366;
  --text-light: #ffffff;
  --text-dark: #333;
  --bg-gray: #f4f4f4;
  --font-main: 'Montserrat', sans-serif;
  /* Alternativa a Futura [cite: 45] */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

/* Header */
header {
  background: var(--primary-blue);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
}

.brand-g {
  font-size: 2.5rem;
  font-weight: bold;
  border: 2px solid white;
  padding: 0 10px;
  margin-right: 10px;
  border-radius: 5px;
  /* Representando el isologo [cite: 25, 26] */
}

.brand-text .top {
  display: block;
  font-size: 1rem;
  letter-spacing: 2px;
}

.brand-text .bottom {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 0 15px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #ccc;
}

/* Hero */
.hero {
  height: 100vh;
  position: relative;
  /* background-size: cover; -- Removed as it is now handled by slides */
  /* background-position: center; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

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

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

.slide.active {
  opacity: 1;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: 0.5s;
}

.btn-primary:hover {
  background: white;
  color: var(--primary-blue);
}

/* Secciones */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.mision-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-gray);
  padding: 30px;
  border-left: 5px solid var(--primary-blue);
}

.valores {
  text-align: center;
  margin-top: 40px;
}

.valores-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.valores-grid span {
  background: var(--primary-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
}

/* Servicios */
.services {
  background: #eee;
}

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

.service-item {
  background: white;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-item h4 {
  padding: 15px 0;
}

.service-item p {
  padding: 0 15px 20px;
  font-size: 0.9rem;
}

/* Why Choose Us */
.why-choose-us {
  background: white;
  text-align: center;
  padding-bottom: 40px;
}

.reasons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.reasons-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
}

.reason-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  text-align: center;
}

.reason-icon {
  background: #ffc107;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.reason-item:hover .reason-icon {
  transform: scale(1.1);
}

.reason-icon i {
  font-size: 2rem;
  color: #333;
}

.reason-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.reason-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .reasons-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Formulario */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}

.contact input,
.contact textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
}

.contact .btn-primary {
  background: var(--primary-blue);
  cursor: pointer;
}

/* Footer Redesign */
footer {
  background: black;
  color: white;
  padding-top: 40px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo-section {
  padding-left: 20px;
  max-width: 400px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
  object-fit: contain;
  margin-right: 15px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ccc;
}

.footer-social p {
  margin-bottom: 10px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: white;
  background: var(--accent-blue);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: 0.3s;
}

.social-icon:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-contact-section {
  text-align: left;
}

.footer-contact-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.contact-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.contact-item i {
  color: var(--accent-blue);
  font-size: 1.1rem;
}

.contact-item span {
  font-size: 0.95rem;
}

.footer-services-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-services-section ul {
  list-style: none;
}

.footer-services-section ul li {
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.footer-contact-section p {
  margin-bottom: 10px;
  font-weight: bold;
  color: white;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  color: #ccc;
}

.copyright,
.credits {
  margin: 5px 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .mision-vision {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo-section {
    padding-left: 0;
  }

  .footer-contact-section {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
}

.whatsapp-float i {
  margin-top: 2px;
  /* Slight adjustment to center the icon vertically */
}

/* Contact Section Refactor */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.contact-info {
  text-align: left;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.contact-item-large {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-item-large i {
  color: var(--accent-blue);
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  margin-right: 15px;
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item-large {
    font-size: 1rem;
  }
}