/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

header {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('cerrajeros-apertura.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.49);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 700px;
}

.header-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: whitesmoke;
  
  /* Animación suave y accesible */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1.5s ease-out forwards;
}

/* Animación tipo fade + slide vertical */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeto a usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .header-content h1 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.header-content p {
    font-size: 1.55rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: rgb(255, 255, 255);
}

.cta-button:hover {
    background: linear-gradient(135deg, #00cec9, #74b9ff);
    transform: translateY(-3px);
    color: rgb(255, 255, 255);
}

@media (min-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1.4rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section.info-section {
    width: 100%;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content {
    max-width: 700px;
    animation: fadeUp 1.2s ease-out forwards;
    opacity: 0;
}

    section.info-section.visible .info-content {
      opacity: 1;
      animation: fadeUp 1.2s ease-out forwards;
    }

    .info-content h2 {
      font-size: 1.8rem;
      color: #0d1b2a;
      margin-bottom: 1rem;
      letter-spacing: 0.5px;
    }

    .info-content p {
      font-size: 1.3rem;
      color: #444;
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    /* Sutil efecto decorativo */
    .info-section::before {
      content: "";
      position: absolute;
      width: 250px;
      height: 250px;
      top: -80px;
      right: -80px;
      background: radial-gradient(circle, rgba(0, 184, 148, 0.15) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
    }

    .info-section::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      bottom: -60px;
      left: -60px;
      background: radial-gradient(circle, rgba(9, 132, 227, 0.15) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
    }

    /* Responsividad */
    @media (min-width: 768px) {
      .info-content h2 {
        font-size: 2.2rem;
      }
      .info-content p {
        font-size: 1.4rem;
      }
    }

 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: #f8f9fa;
      color: #333;
    }

    /* --- Sección general --- */
    section.carousel-section {
      width: 100%;
      padding: 3rem 1.5rem;
      background: linear-gradient(135deg, #ffffff, #f1f5f9);
      text-align: center;
      overflow: hidden;
      position: relative;
    }

    section.carousel-section h2 {
      font-size: 1.8rem;
      color: #0d1b2a;
      margin-bottom: 0.75rem;
    }

    section.carousel-section p {
      max-width: 700px;
      margin: 0 auto 2rem;
      font-size: 1.3rem;
      color: #555;
      line-height: 1.6;
    }

    /* --- Carrusel --- */
    .carousel-container {
      position: relative;
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
      overflow: hidden;
      border-radius: 1.5rem;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .carousel-track {
      display: flex;
      transition: transform 0.6s ease;
    }

    .carousel-slide {
      min-width: 100%;
      height: 230px;
      background-size: cover;
      background-position: center;
    }

    /* --- Botones de navegación --- */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(255, 255, 255, 0.8);
      border: none;
      padding: 0.6rem 0.9rem;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s;
    }

    .carousel-btn:hover {
      background-color: rgba(255, 255, 255, 1);
    }

    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    /* --- Indicadores --- */
    .carousel-dots {
      display: flex;
      justify-content: center;
      margin-top: 1rem;
      gap: 8px;
    }

    .carousel-dot {
      width: 10px;
      height: 10px;
      background-color: #ccc;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s;
    }

    .carousel-dot.active {
      background-color: #00b894;
      transform: scale(1.2);
    }

    /* --- Responsividad --- */
    @media (min-width: 768px) {
      section.carousel-section h2 {
        font-size: 2.2rem;
      }

      .carousel-slide {
        height: 400px;
      }
    }

 .banner {
      position: relative;
      width: 100%;
      height: 80vh;
      min-height: 380px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
      background: linear-gradient(135deg, #272726, #33352f);
    }

    /* --- Fondo animado con formas suaves --- */
    .banner::before, .banner::after {
      content: "";
      position: absolute;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      animation: float 8s ease-in-out infinite;
      z-index: 0;
    }

    .banner::before {
      top: -80px;
      left: -100px;
      animation-delay: 0s;
    }

    .banner::after {
      bottom: -80px;
      right: -100px;
      animation-delay: 3s;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(20px); }
    }

    /* --- Contenido del banner --- */
    .banner-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
      padding: 1.5rem;
    }

    .banner h2 {
      font-size: 2.2rem;
      font-weight: 600;
      margin-bottom: 1rem;
      line-height: 1.3;
      animation: fadeSlide 1.5s ease forwards;
      color: whitesmoke;
    }

    .banner p {
      font-size: 1.4rem;
      color: #cfe1e3;
      margin-bottom: 2rem;
      animation: fadeSlide 1.5s ease 0.3s forwards;
    }

    @keyframes fadeSlide {
      from {
        opacity: 0;
        transform: translateY(25px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* --- Botón CTA --- */
    .cta-button {
      display: inline-block;
      background-color: #fff;
      color: #0077b6;
      padding: 0.9rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .cta-button:hover {
      background-color: #caf0f8;
      transform: translateY(-3px);
    }

    /* --- Responsividad --- */
    @media (min-width: 768px) {
      .banner h1 {
        font-size: 2.3rem;
      }

      .banner p {
        font-size: 1.4rem;
      }
    }

 section.reformas {
      position: relative;
      padding: 4rem 1.5rem;
      background: linear-gradient(135deg, #ffffff, #f1f5f9);
      overflow: hidden;
      text-align: center;
    }

    /* Efectos decorativos suaves */
    .reformas::before, .reformas::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      background: rgba(0, 184, 148, 0.1);
      z-index: 0;
      filter: blur(60px);
    }

    .reformas::before {
      width: 200px;
      height: 200px;
      top: -50px;
      left: -50px;
    }

    .reformas::after {
      width: 250px;
      height: 250px;
      bottom: -80px;
      right: -60px;
      background: rgba(9, 132, 227, 0.1);
    }

    .reformas-content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 0 auto;
      animation: fadeSlideIn 1.2s ease forwards;
      opacity: 0;
    }

    /* --- Animación elegante --- */
    @keyframes fadeSlideIn {
      from {
        opacity: 0;
        transform: translateY(25px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Título */
    .reformas h2 {
      font-size: 1.8rem;
      color: #0d1b2a;
      margin-bottom: 1rem;
      line-height: 1.3;
    }

    /* Texto */
    .reformas p {
      font-size: 1.3rem;
      color: #444;
      margin-bottom: 2rem;
    }

    /* Botón de acción */
    .cta-button {
      display: inline-block;
      padding: 0.9rem 2rem;
      font-size: 1.5rem;
      color: #fff;
      background: linear-gradient(135deg, #00b894, #0984e3);
      border-radius: 50px;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .cta-button:hover {
      transform: translateY(-3px);
      background: linear-gradient(135deg, #00cec9, #74b9ff);
    }

    /* Responsividad */
    @media (min-width: 768px) {
      .reformas h2 {
        font-size: 2.3rem;
      }

      .reformas p {
        font-size: 1.4rem;
      }
    }

    /* Accesibilidad */
    @media (prefers-reduced-motion: reduce) {
      .reformas-content {
        animation: none;
        opacity: 1;
        transform: none;
      }
    }


  /* ======== ESTILOS DE SECCIÓN FONTANERÍA ======== */
  .plumbing-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(150deg,  #302e2b, #1d1d1c, #4b4c47);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #f1faff;
    padding: 2rem 1rem;
  }

  /* --- Animación de degradado --- */
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* --- Formas animadas en el fondo --- */
  .plumbing-section::before,
  .plumbing-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 250px;
    border-radius: 60%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(40px);
    animation: floatAlt 10s ease-in-out infinite;
    z-index: 0;
  }

  .plumbing-section::before {
    top: -60px;
    left: -80px;
    animation-delay: 1s;
  }

  .plumbing-section::after {
    bottom: -60px;
    right: -80px;
    animation-delay: 4s;
  }

  @keyframes floatAlt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(25px) translateX(15px); }
  }

  /* --- Contenido --- */
  .plumbing-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 1rem;
  }

  .plumbing-content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    animation: fadeUp 1.5s ease forwards;
  }

  .plumbing-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #d7f5ff;
    margin-bottom: 2rem;
    animation: fadeUp 1.5s ease 0.3s forwards;
  }

  .plumbing-btn {
    display: inline-block;
    background-color: #dd6706;
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeUp 1.5s ease 0.6s forwards;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* --- Responsividad --- */
  @media (min-width: 768px) {
    .plumbing-content h1 {
      font-size: 2.5rem;
    }

    .plumbing-content p {
      font-size: 1.4rem;
    }
  }

  @media (min-width: 1024px) {
    .plumbing-section {
      min-height: 90vh;
    }

    .plumbing-content h1 {
      font-size: 3rem;
    }
  }

  /* Reset básico */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: #f5f6fa;
      color: #333;
      line-height: 1.6;
    }

    /* --- Sección principal --- */
    section.pintura {
      position: relative;
      padding: 4rem 1.5rem;
      overflow: hidden;
      text-align: center;
      background: linear-gradient(120deg, #f5f6fa 50%, #ffecd1 50%);
      background-size: 200% 100%;
      background-position: right bottom;
      transition: background-position 2s ease;
    }

    /* Efecto “pintando” el fondo al entrar en pantalla */
    section.pintura.visible {
      background-position: left bottom;
    }

    /* Textos */
    .pintura-content {
      position: relative;
      z-index: 2;
      max-width: 800px;
      margin: 0 auto;
      animation: fadeSlideIn 1.5s ease forwards;
      opacity: 0;
    }

    @keyframes fadeSlideIn {
      0% {
        opacity: 0;
        transform: translateY(25px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .pintura h2 {
      font-size: 1.9rem;
      color: #1d3557;
      margin-bottom: 1rem;
    }

    .pintura p {
      font-size: 1.5rem;
      color: #444;
      margin-bottom: 2rem;
    }

    /* Cinta “de pintura” decorativa */
    .paint-stroke {
      position: absolute;
      top: 0;
      left: -30%;
      width: 160%;
      height: 55%;
      background: linear-gradient(130deg, rgb(188, 201, 0), rgb(229, 255, 0));
      clip-path: polygon(0 0, 100% 0, 95% 100%, 0 95%);
      z-index: 0;
      opacity: 0.3;
      transform: translateY(-100%);
      transition: transform 1.8s ease;
    }

    section.pintura.visible .paint-stroke {
      transform: translateY(0);
    }

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #bc2f0c, #9b2602);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #db332d, #d53636);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .pintura h2 {
        font-size: 2.2rem;
    }

    .pintura p {
          font-size: 1.4rem;
      }
}

@media (prefers-reduced-motion: reduce) {
    section.pintura,
        .paint-stroke,
        .pintura-content {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero-header {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #e0f2fe, #fff);
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 1200px;
}

.hero-header .hero-image {
    width: 90%;
    max-width: 360px;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    transition: transform 0.4s ease;
}

.hero-header .hero-image:hover {
    transform: scale(1.03);
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 1.2s ease;
}

.hero-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-content p {
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 9999px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.cta-btn:hover,
.cta-btn:focus {
      background: #1d4ed8;
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.changing-text {
    background: linear-gradient(90deg, #f6793b, #d43606, #b95f10);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

@keyframes textGradient {
    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
}

@media (min-width: 768px) {
    .hero-header {
        flex-direction: row;
        text-align: left;
        padding: 3rem 5rem;
    }

    .hero-content {
        flex: 1;
        padding-right: 3rem;
    }

    .hero-header .hero-image {
        flex: 1;
        width: 100%;
        max-width: 450px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

.hero-locations {
    position: relative;
    width: 100%;
    min-height: 320px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 18px;
    background: #0b0f1c;
    isolation: isolate;
}

.hero-locations-bg {
    position: absolute;
    inset: 0;
    background-image: url('Mapa-vectorial-illustrator-eps-municipios-provincia-Alicante-780x1024.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.26);
    transform: scale(1.1);
    z-index: -1;
    transition: transform 0.8s ease, filter 0.8s ease;
}

.hero-locations-content {
    color: white;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-locations-title {
    margin: 0;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-locations-text {
    margin: 0;
    font-size: clamp(0.9rem, 3.7vw, 1.1rem);
    color: #e5eaf5;
}

.hero-locations-links {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-locations-links a {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(5px);
}

.hero-locations-links a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.22);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (pointer: fine) {
    .hero-locations:hover .hero-locations-bg {
        transform: scale(1.15);
        filter: brightness(0.65);
    }
}

.qa {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 20px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.qa h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1e293b;
    text-align: center;
}

.qa-item + .qa-item {
    margin-top: 10px;
}

.qa-question {
    width: 100%;
    background: #f1f5f9;
    border: 0;
    padding: 14px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 1.4rem;
    color: #334155;
    transition: background 0.2s;
}

.qa-question:hover {
    background: #e2e8f0;
}

.qa-answer {
    display: none;
    padding: 12px;
    background: #fff;
    border-left: 3px solid #4f46e5;
    margin-top: 6px;
    border-radius: 6px;
    color: #475569;
    line-height: 1.45;
    font-size: 1.35rem;
}

.qa-answer.show {
    display: block;
    animation: fade 0.25s ease-in-out;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}