:root {
  --teal-dark: #1b363a;
  --teal-main: #2d5459;
  --gold-accent: #cfa85b;
  --gold-light: #e8d197;
  --cream-bg: #faf6f0;
  --purple-soft: #d8cce0;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-muted: #555555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.7;
}

header {
  background-color: var(--teal-dark);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* CONTENEDOR MÁGICO PARA RECORTAR EL LOGO GRANDE AUTOMÁTICAMENTE */
.logo-frame {
  width: 160px;
  height: 42px;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.logo-frame img {
  position: absolute;
  top: -8px;
  left: 0;
  width: 160px; /* Ajusta este ancho si quieres que se vea más grande o pequeño */
  height: auto;
  mix-blend-mode: screen; /* Vuelve transparente el fondo blanco sobre el verde oscuro */
  filter: brightness(1.2) contrast(1.1);
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--gold-accent);
}

.container {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* BANNER HERO CON IMAGEN DE FONDO */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(rgba(27, 54, 58, 0.65), rgba(27, 54, 58, 0.75)), url('hero-bg.jpg') center/cover no-repeat;
  border-radius: 12px;
  border: 1px solid var(--gold-accent);
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  color: var(--white);
}

.hero h1 {
  color: var(--gold-light);
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero .subtitle {
  color: #ffffff;
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero .location {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero .description {
  font-size: 1.05rem;
  margin: 1rem auto 2rem auto;
  max-width: 750px;
  color: #f9f9f9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.btn-gold {
  display: inline-block;
  background-color: var(--gold-accent);
  color: var(--teal-dark);
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(207, 168, 91, 0.4);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.card {
  background: white;
  padding: 2.0rem;
  border-radius: 10px;
  border-left: 4px solid var(--gold-accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.card h3 {
  color: var(--teal-dark);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.card ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li {
  margin-bottom: 0.4rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--gold-light);
}

label {
  font-weight: 600;
  color: var(--teal-dark);
}

input, textarea, button {
  padding: 0.9rem;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
}

button[type="submit"] {
  background-color: var(--teal-main);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--teal-dark);
}

footer {
  text-align: center;
  padding: 2.5rem;
  background-color: var(--teal-dark);
  color: var(--gold-light);
  margin-top: 4rem;
  font-size: 0.95rem;
}

/* RESPONSIVE DESIGN (SMARTPHONES) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem;
  }

  nav a {
    margin: 0 0.4rem;
    font-size: 0.85rem;
  }

  .container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .hero {
    padding: 3.5rem 1.2rem;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero .subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero .location {
    font-size: 0.95rem;
  }

  .hero .description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.8rem auto 1.5rem auto;
  }

  .btn-gold {
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}