* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

#header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #010e25;
    color: #fff;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    color: #fdec00;
    font-size: 2.2rem;
    font-weight: bolder;
    text-decoration: none;
}

.first-link {
    font-size: 1.7rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.call-btn {
    background: #35e200;
    color: #1a1a1a;
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-left: 0.5rem;
    white-space: nowrap;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
    }

    nav {
        position: fixed;
        top: 110px;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 998; /* Menú debajo del header */
    }

    nav.open {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    #menu-toggle {
        display: flex;
        margin-left: 0.5rem;
    }

    /* Ajustamos el container en móviles para que no se solapen */
    #header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.5rem;
    }

    .call-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1.5rem;
    }

    #menu-toggle span {
        width: 20px;
        height: 2.5px;
    }
}

.header-actions {
    flex-shrink: 0;      /* evita que se aplasten y se monten */
    white-space: nowrap; /* mantiene los botones en una sola fila */
}

@media (max-width: 768px) {
    nav {
        z-index: 1001;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    #header {
        pointer-events: none;
    }

    #header nav,
    #menu-toggle {
        pointer-events: auto;
    }
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

/* HERO SECTION */
#hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: url('logo-servi24h-aperturas.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#hero-section .overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#hero-section .content {
    margin-top:-20px;
    text-align: center;
    max-width: 800px;
}

#hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.animated-list {
    list-style: none;
    margin-bottom: 2rem;
}

.animated-list li {
    opacity: 0;
    transform: translateX(-30px);
    margin: 0.8rem 0;
    font-size: 2rem;
    animation: fadeIn 0.6s forwards;
}

.animated-list li:nth-child(1) { animation-delay: 0.2s; }
.animated-list li:nth-child(2) { animation-delay: 0.4s; }
.animated-list li:nth-child(3) { animation-delay: 0.6s; }
.animated-list li:nth-child(4) { animation-delay: 0.8s; }
.animated-list li:nth-child(5) { animation-delay: 1s; }
.animated-list li:nth-child(6) { animation-delay: 1.2s; }
.animated-list li:nth-child(7) { animation-delay: 1.4s; }
.animated-list li:nth-child(8) { animation-delay: 1.6s; }
.animated-list li:nth-child(9) { animation-delay: 1.8s; }


@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* BOTÓN LLAMADA */
.call-bton {
    display: inline-block;
    background: #ffcc00;
    color: #1a1a1a;
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background 0.3s;
}


/* RESPONSIVE MOBILE-FIRST */
@media (max-width: 768px) {
    #hero-section h1 {
        font-size: 1.8rem;
    }

    .animated-list li {
        font-size: 1.5rem;
    }

    .call-bton {
        font-size: 1.6rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    #hero-section h1 {
        font-size: 1.5rem;
    }

    .animated-list li {
        font-size: 1.5rem;
    }

    .call-bton {
        font-size: 1.5;
        padding: 0.5rem 1rem;
    }
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

/* SECCIÓN FEATURE */
#feature-section {
    width: 100%;
    padding: 3rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    gap: 2rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.03);
}

.feature-text {
    text-align: center;
    max-width: 800px;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
}

/* MOBILE-FIRST RESPONSIVE */
@media (min-width: 768px) {
    .feature-container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .feature-image, .feature-text {
        flex: 1;
    }

    .feature-text {
        text-align: left;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    .feature-text p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    .feature-text h2 {
        font-size: 2.3rem;
    }

    .feature-text p {
        font-size: 1.4rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

#animated-feature {
    width: 100%;
    padding: 3rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    gap: 2rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.03);
}

.feature-text {
    text-align: center;
    max-width: 800px;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-text h2 .animated-text {
    color: #ffcc00;
    font-weight: bold;
    margin-left: 0.5rem;
    min-width: 150px;
    display: inline-block;
}

.feature-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
}

@media (min-width: 768px) {
    .feature-container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .feature-image, .feature-text {
        flex: 1;
    }

    .feature-text {
        text-align: left;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    .feature-text p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    .feature-text h2 {
        font-size: 2.3rem;
    }

    .feature-text p {
        font-size: 1.4rem;
    }
}


#carousel-section {
    width: 100%;
    padding: 3rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.carousel-container {
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.carousel-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* MOBILE-FIRST RESPONSIVE */
@media (min-width: 768px) {
    .carousel-container h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .carousel-container h2 {
        font-size: 2.3rem;
    }
}

/* SECCIÓN MAPA */
#map-section {
    width: 100%;
    padding: 1.5rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.map-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.map-container h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* MOBILE-FIRST RESPONSIVE */
@media (min-width: 768px) {
    .map-container h2 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1200px) {
    .map-container h2 {
        font-size: 1.8rem;
    }
}

/* SECCIÓN FAQ */
#faq-section {
    width: 100%;
    padding: 3rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.faq-container {
    max-width: 800px;
    width: 100%;
}

.faq-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-align: center;
}

/* FAQ ITEMS */
.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    padding: 1rem;
    text-align: left;
    font-size: 1.4rem;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.45rem;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    background: #fff;
    padding: 1rem;
    font-size: 1.55rem;
    line-height: 1.5;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* MOBILE-FIRST RESPONSIVE */
@media (min-width: 768px) {
    .faq-container h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.35rem;
    }

    .faq-answer {
        font-size: 1.3rem;
    }
}

#modern-footer {
    width: 100%;
    padding: 2.5rem 1rem;
    background: #111;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* IMAGEN */
.footer-image img {
    width: 100%;
    max-width: 380px;
    max-height: 512px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    object-fit: cover;
}

/* CONTENIDO */
.footer-content {
    text-align: center;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #35e200;
}

.footer-content p {
    font-size: 1.35rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* BOTONES */
.footer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.4rem;
    font-size: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn.call {
    background: #35e200;
    color: #111;
}

.btn.email {
    background: #dd0202;
    color: #fff;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .footer-content {
        flex: 1;
        text-align: left;
    }

    .footer-image {
        flex: 1;
    }

    .footer-content h2 {
        font-size: 2.2rem;
    }

    .footer-content p {
        font-size: 1.4rem;
    }
}

.footer-typed-text {
    color: #fff;
    font-weight: bold;
    border-right: 3px solid #fff;
    padding-right: 5px;
    animation: footer-cursor-blink 0.7s infinite;
}

@keyframes footer-cursor-blink {
    50% { border-color: transparent; }
}

 .servicio-puertas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    font-family: sans-serif;
  }

  .servicio-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #111;
  }

  .servicio-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #282828;
  }

  .servicio-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  }

  /* Desktop */
  @media (min-width: 768px) {
    .servicio-puertas {
      flex-direction: row;
      align-items: center;
    }

    .servicio-content {
      flex: 1;
    }

    .servicio-img {
      flex: 1;
    }
  }

.titulo-animado {
    padding: 40px 1rem;
    font-family: system-ui, -apple-system, sans-serif;
    color: rgb(3, 3, 107)
  }

  .titulo {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
  }

  /* Línea subrayada */
  .underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 9px;
    background: #f6d903;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 1;
  }

  /* Animación */
  @keyframes drawLine {
    0%   { transform: scaleX(0); opacity: 1; }
    60%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; height: 1px; }
  }

  /* Cuando se activa */
  .animate .underline {
    animation: drawLine 3s infinite ease-out forwards ;
  }

  /* Responsive */
  @media (min-width: 640px) {
    .titulo { font-size: 2rem; }
  }
  @media (min-width: 1024px) {
    .titulo { font-size: 2.3rem; }
  }

.link-section {
    max-width: 460px;
    margin: 1.5rem auto;
    padding: 1rem;
    font-size: 1.25rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: system-ui, sans-serif;
}

#puertas {
  scroll-margin-top: 129px;
}

.toggle-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: #111827;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.25s;
}

.toggle-btn:hover {
    background: #1f2937;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.link-list.open {
    max-height: 300px; /* suficiente para varios elementos */
}

.link-list li {
    margin-top: 0.8rem;
}

.link-list a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 1.25rem;
    display: block;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 0.6rem;
    transition: background 0.25s;
}

