/* Esquema de colores principal */
:root {
  --primary: #2c7a7b;
  --primary-dark: #1a5f60;
  --primary-light: #4a9596;
  --secondary: #f8b500;
  --secondary-light: #ffcd4a;
  --dark: #001f3f;
  --dark-blue: #003366;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --success: #28a745;
}

/* Reglas para evitar scroll horizontal y mejorar disposición */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Estilos para la navegación */
.navbar {
  background: linear-gradient(90deg, #000c19 0%, #001f3f 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  filter: brightness(1.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

footer {
  background: linear-gradient(135deg, #000c19, #001a35) !important;
}

footer hr {
  background-color: rgba(255, 255, 255, 0.2);
  height: 1px;
  border: none;
}

footer a:hover {
  color: #2c7a7b !important;
  transition: color 0.3s ease;
}

/* Estilo para el carrusel */
.hero {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  height: 70vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(44, 122, 123, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Estilos para botones */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-light {
  background: linear-gradient(135deg, var(--white), var(--light));
  color: var(--dark);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.btn-light:hover {
  background: linear-gradient(135deg, var(--light), var(--white));
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  transition: all 0.3s;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

/* Estilos para la línea de tiempo - Comentados para usar el archivo específico 
.timeline {
  position: relative;
  padding: 20px 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ddd;
  transform: translateX(-50%);
}

.timeline li {
  position: relative;
  margin-bottom: 20px;
}

.timeline li .timeline-badge {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  background: #0388A7;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  z-index: 1;
}

.timeline li .timeline-panel {
  position: relative;
  width: 46%;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline li .timeline-panel:before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline li .timeline-panel .timeline-heading h4 {
  margin-top: 0;
  color: #0388A7;
}

.timeline li .timeline-panel .timeline-body {
  margin-top: 10px;
  color: #333;
}

.timeline li:nth-child(odd) .timeline-panel {
  left: 0;
}

.timeline li:nth-child(odd) .timeline-panel:before {
  left: 100%;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #ddd;
}

.timeline li:nth-child(even) .timeline-panel {
  right: 0;
}

.timeline li:nth-child(even) .timeline-panel:before {
  right: 100%;
  border-width: 10px 10px 10px 0;
  border-color: transparent #ddd transparent transparent;
}

@media (max-width: 768px) {
  .timeline:before {
    left: 20px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 40px);
    left: 40px !important;
    right: auto !important;
  }

  .timeline li:nth-child(odd) .timeline-panel:before,
  .timeline li:nth-child(even) .timeline-panel:before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ddd transparent transparent;
  }
}
*/

/* Estilo para secciones */
section {
  padding: 70px 0;
  overflow-x: hidden;
}

section.bg-light {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

#nosotros {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark), var(--primary));
  color: white;
}

.section-title {
  margin-bottom: 15px;
  position: relative;
  font-weight: 700;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 15px auto 0;
}

.section-subtitle {
  margin-bottom: 45px;
  color: var(--gray);
}

/* Estilo para las tarjetas de servicios */
.service-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, var(--white), #f9f9f9);
  border: none;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
  padding: 2rem 1.5rem;
}

.service-card i {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s;
}

.service-card:hover i {
  transform: scale(1.2);
}

/* Estilo para el equipo - formato circular */
.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 5px solid rgba(44, 122, 123, 0.1);
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member:hover img {
  transform: scale(1.05);
  border-color: var(--primary-light);
}

.team-member h4 {
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.team-member .text-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Estilos para testimonios */
.testimonial-card {
  padding: 30px;
  background: linear-gradient(135deg, var(--white), #f9f9f9);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s;
  border-top: 3px solid var(--primary);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card .text-warning {
  color: var(--secondary) !important;
}

/* Estilo para el footer */
footer {
  background: linear-gradient(135deg, #000c19, #001a35) !important;
}

footer h5 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

footer a:hover {
  color: #2c7a7b !important;
  transition: color 0.3s ease;
}

footer ul {
  padding-left: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
}

footer hr {
  background-color: rgba(255, 255, 255, 0.2);
  height: 1px;
  border: none;
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50px;
  padding: 12px 24px 12px 12px;
  z-index: 100;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Modales estilizados */
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.modal-content {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 10px;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body .fa-5x {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline:before {
    left: 40px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 90px);
    float: right;
  }

  .timeline li .timeline-badge {
    left: 15px;
    margin-left: 0;
    top: 16px;
  }

  .timeline li.timeline-inverted > .timeline-panel {
    float: right;
  }

  .carousel-item {
    height: 60vh;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Ajuste para el botón de WhatsApp en móviles */
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
  }
  
  .whatsapp-float img {
    margin-right: 0;
  }
}

/* Animación de fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones adicionales */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.equal-height-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.equal-height-row > [class^="col-"] {
  display: flex;
  flex-direction: column;
}
.card.h-100 {
  height: 100%;
}

/* Banner de Cookies */
.cookie-consent {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 31, 63, 0.95);
  color: #fff;
  z-index: 999;
  padding: 15px 0;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-text p {
  margin-bottom: 5px;
  font-size: 14px;
}

.cookie-text a {
  color: #4a9596;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons .btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Personalización del modal de política de cookies */
#cookiePolicyModal .modal-content {
  border-radius: 0.5rem;
  border: none;
}

#cookiePolicyModal .modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.5rem 0.5rem 0 0;
}

#cookiePolicyModal .modal-body h4 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

#cookiePolicyModal .modal-body h4:first-child {
  margin-top: 0;
}

#cookiePolicyModal .modal-footer {
  border-top: none;
}
