:root {
  --color-principal: #24da4a;
  --color-secundario: #1c9b36;
  --color-texto: #222;
  --fondo: #fff;
  --fondo-claro: #f6f7f8;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PT Sans', sans-serif;
  color: var(--color-texto);
  background: var(--fondo);
  line-height: 1.6;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--fondo);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height: 40px; }

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 700;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active { color: var(--color-principal); }

section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
}

#inicio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 100vh;
  background: var(--fondo-claro);
  padding-top: 120px;
}

#inicio .texto { flex: 1; padding: 20px; }
#inicio h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--color-secundario);
}
#inicio p { margin: 1rem 0; font-size: 1.1rem; color: #555; }
#inicio img { flex: 1; max-width: 450px; width: 100%; border-radius: 10px; }

h2 {
  font-family: 'Fredoka One', cursive;
  color: var(--color-secundario);
  text-align: center;
  margin-bottom: 1rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.servicio {
  background: var(--fondo-claro);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.servicio:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.servicio svg {
  color: var(--color-principal);
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}
input, textarea, button {
  font: inherit;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}
button {
  background: var(--color-principal);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover { background: var(--color-secundario); }

iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
}

footer {
  background: var(--fondo-claro);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 50px;
  color: #666;
}
footer img { height: 40px; margin-bottom: 1rem; }
.contact-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Animaciones */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsivo */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--fondo);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
  }
  nav ul.active { display: flex; }
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-secundario);
  }
  #inicio { flex-direction: column; text-align: center; }
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

/* ==== Sección Nosotros (tarjetas modernas) ==== */
#nosotros {
  background: var(--fondo-claro);
  padding: 100px 20px;
}

.contenedor-nosotros {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#nosotros h2 {
  color: var(--color-secundario);
  margin-bottom: 1rem;
}

#nosotros .intro {
  max-width: 750px;
  margin: 0 auto 3rem;
  color: #444;
  line-height: 1.8;
  font-size: 1.05rem;
}

.tarjetas-nosotros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tarjeta {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.icono {
  background: var(--color-principal);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.icono svg {
  width: 28px;
  height: 28px;
}

.tarjeta h3 {
  color: var(--color-secundario);
  margin-bottom: 0.6rem;
}

.tarjeta p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}
