/* Básicos */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */

.site-header {
  background: #0f172a;
  color: #f9fafb;
  padding: 0.75rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box img {
  width: 64px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.header-contact {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.phone-link {
  color: #22c55e;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.phone-link:hover {
  text-decoration: underline;
}

.schedule {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Language switcher */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #475569;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-btn span[aria-hidden="true"] {
  font-size: 1rem;
}

.lang-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: #052e16;
}

.lang-btn:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Bloques de idioma */

.lang {
  display: none;
}

.lang.active-lang {
  display: initial;
}

/* HERO */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.hero-text p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-address h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.hero-address a {
  color: #2563eb;
  text-decoration: none;
}

.hero-address a:hover {
  text-decoration: underline;
}

.hero-address .small {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Hero card */

.hero-card {
  background: #0f172a;
  color: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.hero-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.hero-card li::before {
  content: "• ";
  color: #38bdf8;
}

.hero-card li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.highlight-text {
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease,
    transform 80ms ease;
}

.btn-primary {
  background: #22c55e;
  color: #052e16;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #0f172a;
  border-color: #0f172a;
}

.btn-outline:hover {
  background: #0f172a;
  color: #f9fafb;
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

/* Secciones genéricas */

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: #e5e7eb;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #0f172a;
}

.section-intro {
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

/* Servicios */

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #e5e7eb;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Galería */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: #111827;
}

/* Contacto */

.contact-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: #2563eb;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.or-text {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.8rem 0;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1rem 0;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
}

.footer-content a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-small {
  margin-top: 0.25rem;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-content,
  .services-grid,
  .gallery,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-contact {
    text-align: left;
  }

  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .site-header {
    padding: 0.6rem 0;
  }
}

