/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #f5fff6;
  color: #222;
}

/* Colores base */
:root {
  --primario: #009463;
  --secundario: #007531;
  --claro: #e6f0fa;
  --oscuro: #00662a;
  --blanco: #fff;
}

/* Header fijo */
.header {
  background: var(--oscuro);
  color: var(--blanco);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--primario);
}

.header-column .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-column .logo img {
  height: 80px;
  margin-bottom: 1rem;
}

.nav ul {
  flex-direction: row;
  gap: 1.5rem;
}

.nav ul li a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1); /* fondo semitransparente */
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav ul li a:hover {
  background: white;
  color: var(--primario);
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('../img/slide1.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Cards de servicios */
.cards-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.034), rgba(0, 0, 0, 0.329)), url('../img/fondo.jpg') no-repeat center center/cover;
}

.cards-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--oscuro);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 83, 11, 0.685);
}

.card i {
  font-size: 2.5rem;
  color: var(--primario);
  margin-bottom: 1rem;
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;

  border: 4px solid var(--oscuro);
  background-size: cover;
  background-position: center;
  position: relative;
  color: rgb(255, 255, 255);
  overflow: hidden;

  border-radius: 10px;
  height: 300px;
  padding: 2rem 1rem;
  box-shadow: 0 6px 10px rgba(0, 83, 11, 0.685);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Sección Nosotros */
.about {
  padding: 4rem 2rem;
  background: white;
  color: #333;
}

.about h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--oscuro);
}

.about p {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}

/* Contacto */
.contact {
  background: var(--primario);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.contact a {
  color: #e0e0e0;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--oscuro);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.titlehead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;

  background-size: cover;
  background-position: center;
  background-color: #eefff9d0 !important;
  color: #00662a !important;
  position: relative;
  overflow: hidden;

  border-radius: 10px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.titlehead a {
  text-decoration: none;     
  font-weight: bold;         
  color: inherit;            
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primario) !important;
  color: var(--blanco) !important;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--secundario);
  transform: scale(1.05);
}

.icono {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px white);
}