/* ==== RESET Y BASE ==== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
}

/* ==== HEADER ==== */
.mad-header {
  background: #111;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/*.mad-nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}
*/
/* ==== SLIDER ==== */
.mad-slider {
  position: relative;
  overflow: hidden;
  height: 90vh;
}
.mad-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease;
  opacity: 0;
}
.mad-slide.active {
  opacity: 1;
  z-index: 1;
}
.mad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mad-caption {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 20px 30px;
  border-radius: 8px;
}



/* ==== SECCIONES ==== */
.mad-section {
  padding: 60px 30px;
  background-color: #f9f9f9;
}
.mad-title, .mad-titulo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

/* ==== GRID GENERAL ==== */
.mad-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==== TARJETAS GENERALES ==== */
.mad-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(184,134,11,0.15);
  padding: 20px 15px 30px;
  width: 260px; /* ancho fijo para cajas pequeñas */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* no se encoja */
}
.mad-card:hover {
  transform: translateY(-5px);
}
.mad-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #000;
}
.mad-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ==== ICONOS EN TARJETAS ==== */
.mad-icon-wrapper {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.mad-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  stroke: #c59d5f; /* si usas svg, para png ignora */
  transition: stroke 0.3s ease;
}
.mad-card:hover .mad-icon {
  stroke: #a67c00;
}

/* ==== SERVICIOS ==== */
.mad-grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.mad-servicio {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.mad-servicio:hover {
  transform: scale(1.02);
}
.mad-servicio img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.mad-servicio h3 {
  font-size: 1.3rem;
  margin: 15px 0 5px;
}
.mad-servicio p {
  padding: 0 15px 15px;
  font-size: 1rem;
  color: #333;
}

/* ==== POPUP ==== */
.mad-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.mad-popup.active {
  display: flex; /* se muestra solo con clase active */
}
.mad-popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.mad-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Inputs y selects dentro del popup */
.mad-popup input,
.mad-popup select,
.mad-popup textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ==== FOOTER ==== */
.mad-footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 990px) {
  .mad-grid, .mad-grid-servicios {
    justify-content: center;
  }
  .mad-card {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}
@media (max-width: 500px) {
  .mad-card {
    max-width: 100%;
  }
}

/* ==== ACERCA DE ==== */
.mad-acerca-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 60px 20px;
}
.mad-acerca-foto {
  flex: 1 1 400px;
  text-align: center;
}
.mad-acerca-foto img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}
.mad-acerca-texto {
  flex: 1 1 500px;
}
.mad-acerca-texto h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.mad-acerca-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.mad-cards-acerca {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.mad-cards-acerca .mad-card {
  flex: 1 1 30%;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.grid-categorias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
@media (max-width: 1024px) {
  .grid-categorias {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-categorias {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .grid-categorias {
    grid-template-columns: 1fr;
  }
}

.categoria-box {
  cursor: pointer;
  background: #111;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}
.categoria-box:hover {
  transform: scale(1.02);
}

.categoria-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}




    html {
      scroll-behavior: smooth;
    }

    /* MENU HEADER */
.mad-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mad-logo {
  font-size: 1.0rem;
  font-weight: bold;
  color: #b78c24;
  white-space: nowrap;
}

.mad-nav {
  display: flex;
  gap: 5px;
}

.mad-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.mad-nav a:hover {
  color: #ffd700;
}

/* Opcional: para que el contenido no quede oculto bajo el header fijo */
body {
  padding-top: 60px; /* Ajusta segn la altura real del header */
}
    /* MOBILE MENU */
    .mad-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .mad-toggle span {
      height: 3px;
      width: 25px;
      background: white;
      margin-bottom: 4px;
      border-radius: 2px;
    }

    @media (max-width: 768px) {
      .mad-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
      }

      .mad-nav.active {
        display: flex;
      }

      .mad-toggle {
        display: flex;
      }
    }
    
    /* Contenedor y fondo */
#testimonios {
  background: linear-gradient(to bottom, #ffffff, #f9fafb, #ffffff);
  padding: 5rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor interno */
#testimonios .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Ttulo */
#testimonios h2 {
  font-weight: 800;
  font-size: 3rem;
  color: #2d3748; /* gris oscuro */
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

/* Subrayado amarillo del ttulo */
#testimonios h2 span {
  border-bottom: 4px solid #d69e2e; /* amarillo dorado */
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Grid para testimonios */
#testimonios .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Cada tarjeta de testimonio */
#testimonios .grid > div {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-top: 0.4rem solid #d69e2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Efecto hover elevacin */
#testimonios .grid > div:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* Icono comillas */
#testimonios .grid > div svg {
  width: 32px;
  height: 32px;
  color: #d69e2e;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Texto testimonio */
#testimonios .grid > div p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #4a5568;
  max-width: 20rem;
  text-align: center;
  margin: 0 auto 1.5rem auto;
}

/* Nombre cliente */
#testimonios .grid > div span {
  font-weight: 700;
  font-size: 1.15rem;
  color: #2d3748;
  text-align: center;
}

/* Animacin fade-in-up */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#testimonios .animate-fade-in-up {
  animation-name: fadeInUp;
  animation-duration: 0.7s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* Retrasos para animacin */
#testimonios .delay-100 {
  animation-delay: 0.1s;
}

#testimonios .delay-200 {
  animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 640px) {
  #testimonios h2 {
    font-size: 2.25rem;
  }
  
  #testimonios .grid > div p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Contenedor general dividido */
#contacto .contacto-container {
  display: flex;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
}

/* Izquierda (formulario) */
#contacto .contacto-izquierda {
  flex: 1 1 55%;
}

/* Derecha (info y motivacin) */
#contacto .contacto-derecha {
  flex: 1 1 45%;
  background: #f9f7ef;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contacto .contacto-derecha h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #b78c24; /* dorado oscuro */
}

#contacto .contacto-derecha p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

#contacto .mensaje-motivador {
  margin-top: 40px;
  font-style: italic;
  font-weight: 600;
  color: #7a6b2a;
  font-size: 1.2rem;
  text-align: center;
}

/* Responsive: apilar en mviles */
@media (max-width: 768px) {
  #contacto .contacto-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  #contacto .contacto-izquierda, #contacto .contacto-derecha {
    flex: 1 1 100%;
  }
  #contacto .contacto-derecha {
    margin-top: 40px;
  }
}

#contacto form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  padding: 14px 18px;
  border: 2px solid #d4af37; /* dorado */
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical; /* permite cambiar altura del textarea */
  min-height: 50px;
  box-sizing: border-box;
  color: #333;
}

#contacto textarea {
  min-height: 100px;
}

#contacto input[type="text"]:focus,
#contacto input[type="email"]:focus,
#contacto textarea:focus {
  border-color: #b78c24; /* dorado ms oscuro */
  box-shadow: 0 0 8px rgba(183, 140, 36, 0.6);
}

/* Botn enviar */
#contacto button.mad-btn {
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 12px;
  background-color: #b78c24;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contacto button.mad-btn:hover {
  background-color: #8e6b1d;
}

