:root {
  --navy: hsl(214, 65%, 11%);
  --blue: #06099f;
  --gray: #898989;
  --white: #ffffff;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--black);
  background-color: var(--white);
  scroll-behavior: smooth;
}

/* Header */
.header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.5s;
}

.nav a:hover {
  color: var(--gray);
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: var(--gray);
  padding: 2rem;
}

.hero-content {
  flex: 1 1 400px;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--blue);
}

.hero-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  animation: fadeIn 1s ease;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--navy);
}

/* Sections */
.section {
  padding: 3rem 1rem;
}

.section h2 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Services */
.services .grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
  animation: fadeInUp 1s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Gallery */
.gallery .grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  animation: fadeIn 1s ease;
}

/* Contact */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  cursor: pointer;
}

.form-message {
  text-align: center;
  color: green;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.socials a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.socials a:hover {
  color: var(--gray);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ======== GALERÍA MEJORADA ======== */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.gallery-item.large img {
  height: 250px;
}

.gallery-row {
  display: flex;
  gap: 1rem;
}

.gallery-item.small {
  flex: 1;
}

.gallery-item.small img {
  height: 250px;
}

/* ======== LIGHTBOX ======== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 8, 152, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  animation: fadeIn 0.5s ease;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox .close:hover {
  color: #bbb;
}

.lightbox .prev,
.lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
  transition: 0.3s;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #ccc;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .gallery-item.large img {
    height: 210px;
  }

  .gallery-item.small img {
    height: 200px;
  }
}.center-title {
  text-align: center;
  font-weight: 600;
  color: #070878; /* tu color azul principal */
  margin-top: 1rem;
}