:root {
  --primary-color: #1a3a5c;
  --secondary-color: #4caf50;
  --accent-color: #1a3a5c;
  --text-dark: #f5f5f5;
  --text-light: #c8d8e8;
  --bg-light: #1e4570;
  --bg-site: #1a3a5c;
  --border-color: #2e5f8a;
  --card-bg: #1e4570;
  --card-title: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-site);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand .logo {
  max-height: 60px;
  transition: all 0.3s ease;
}

.navbar-brand .logo-circle {
  background-color: #ffffff;
  border-radius: 50%;
  padding: 4px;
  object-fit: contain;
}

.navbar-brand .logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #ffffff !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #81c784 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, #1a3a5c 0%, #1b5e20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 76px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content .btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background-color: #4caf50;
  border: none;
  color: #ffffff;
}

.btn-primary-custom:hover {
  background-color: #66bb6a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  color: #ffffff;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #81c784;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.section p,
.section li {
  color: var(--text-dark);
}

/* Card Styles */
.service-card,
.news-card {
  height: 100%;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  background-color: var(--card-bg);
  color: var(--text-dark);
}

.service-card:hover,
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card .card-icon {
  font-size: 3rem;
  color: #66bb6a;
  margin-bottom: 1rem;
}

.service-card .card-body {
  padding: 2rem;
  text-align: center;
}

.service-card .card-title {
  color: var(--card-title);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.news-card img {
  height: 250px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .card-title {
  color: var(--card-title);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.news-card .card-text {
  color: var(--text-dark);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: white;
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: var(--text-dark);
}

.contact-form label {
  color: var(--text-dark);
}

.contact-form .form-control,
.contact-form .form-select {
  background-color: #15304d;
  color: #ffffff;
  border-color: var(--border-color);
}

.contact-form .form-control::placeholder {
  color: #a0b8cc;
}

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  height: 100%;
  color: var(--text-dark);
}

.contact-info-item {
  display: flex;
  align-items: start;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #66bb6a;
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.form-control,
.form-select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  background-color: #15304d;
  color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.2);
}

/* Footer */
.footer-main {
  background-color: #0f2238;
  color: #e0e0e0;
  margin-top: 5rem;
}

.footer-main h5 {
  color: #81c784;
  margin-bottom: 1rem;
}

.footer-main a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-main a:hover {
  color: #a5d6a7;
}

.footer-main ul li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .hero-section {
    height: 500px;
    margin-top: 56px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Bootstrap card overrides for dark background */
.card {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.card-header.bg-primary-custom {
  background-color: #0f2238 !important;
}

.list-group-item {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.list-group-item-action:hover {
  background-color: #15304d;
  color: #ffffff;
}

.table {
  color: var(--text-dark);
}

/* Utility Classes */
.bg-light-custom {
  background-color: #1e4570;
}

.text-primary-custom {
  color: #81c9f5;
}

.text-secondary-custom {
  color: #81c784;
}

/* Buttons */
.btn-outline-primary-custom {
  color: #81c784;
  border: 2px solid #81c784;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
  background-color: #81c784;
  color: #1a3a5c;
}
/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}
