*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */

.main-header {
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 40px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

.main-nav a:hover {
  background-color: #e0f7f9;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #1fb5c4 0%, #18a0ae 50%, #f04a3a 100%);
  color: white;
  padding: 3.5rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */

.section {
  padding: 3rem 0;
  background-color: #f7f7f7;
}

.section-alt {
  background-color: #ffffff;
}

.section h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #1c8f9b;
}

/* Productos con imagen */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.contact-data {
  list-style: none;
  margin-top: 1rem;
}

.contact-data li + li {
  margin-top: 0.25rem;
}

.contact-data a {
  color: #1c8f9b;
}

.contact-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0.45rem 0.5rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #1fb5c4;
  border-color: #1fb5c4;
}

.legal-text {
  font-size: 0.75rem;
  color: #666;
}

/* Botones */

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.btn-primary {
  background-color: #f04a3a;
  color: white;
  box-shadow: 0 2px 6px rgba(240, 74, 58, 0.4);
}

.btn-primary:hover {
  background-color: #d53c2d;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: #1c8f9b;
}

.btn-secondary:hover {
  background-color: #e0f7f9;
}

/* RIPCI Slider */

.ripci-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.ripci-slide {
  display: none;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ripci-slide.active {
  display: block;
}

.ripci-slide h3 {
  margin-bottom: 0.75rem;
  color: #f04a3a;
}

.ripci-slide p {
  color: #444;
}

.ripci-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Mapa */

.map-container {
  margin-top: 2rem;
}

.map-container h3 {
  margin-bottom: 0.25rem;
}

.map-container p {
  margin-bottom: 0.75rem;
  color: #555;
}

.map-embed iframe {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Footer */

.footer {
  background-color: #222;
  color: #ddd;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 0.75rem;
}

.footer-nav a {
  color: #ddd;
  font-size: 0.8rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }
}
/* Ajuste nombres de clase al diseño existente */
.site-header {
  background: linear-gradient(135deg, #1fb5c4 0%, #18a0ae 50%, #f04a3a 100%);
  color: white;
  padding: 3.5rem 0;
  margin-bottom: 0;
}

.site-header .contenedor {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-beneficios {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
}

.hero-beneficios li {
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
  text-decoration: none;
}

.btn-principal {
  background-color: #f04a3a;
  color: white;
  box-shadow: 0 2px 6px rgba(240, 74, 58, 0.4);
}

.btn-principal:hover {
  background-color: #d53c2d;
  transform: translateY(-1px);
}

.btn-secundario {
  background-color: white;
  color: #1c8f9b;
}

.btn-secundario:hover {
  background-color: #e0f7f9;
}

/* Secciones generales (para que se parezcan a .section) */
main .contenedor,
main {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

section p {
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #555;
}

/* Listas dentro de secciones */
section ul {
  max-width: 800px;
  margin: 0 auto 1rem 1.2rem;
}

/* Artículos de servicios como tarjetas */
#servicios article {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

#servicios h3 {
  margin-bottom: 0.5rem;
  color: #1c8f9b;
}

/* Testimonios */
.testimonios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonio {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}

.testimonio p:first-child {
  margin-bottom: 0.75rem;
}

/* Contacto (adaptarse a tu estilo actual de .contact-form) */
#contacto .form-contacto {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#contacto .form-contacto label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

#contacto .form-contacto input,
#contacto .form-contacto textarea,
#contacto .form-contacto select {
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0.45rem 0.5rem;
  font: inherit;
}

#contacto .form-contacto input:focus,
#contacto .form-contacto textarea:focus,
#contacto .form-contacto select:focus {
  outline: 2px solid #1fb5c4;
  border-color: #1fb5c4;
}

/* Footer sencillo compatible con tu .footer actual */
.site-footer {
  background-color: #222;
  color: #ddd;
  padding: 1rem 0;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.site-footer .contenedor {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 2.25rem 0;
  }
}