#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;
}

@media (min-width: 768px) {
    .carousel-container h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .carousel-container h2 {
        font-size: 2.3rem;
    }
}

#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;
}

@media (min-width: 768px) {
    .map-container h2 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1200px) {
    .map-container h2 {
        font-size: 1.8rem;
    }
}

#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-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;
}

.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;
}

.footer-content {
    text-align: center;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #fff30e;
}

.footer-content p {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.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: #e20000;
    color: #ffffff;
}

@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;
}

.underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 9px;
    background: #f6ea03;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 1;
}

@keyframes drawLine {
    0%   { transform: scaleX(0); opacity: 1; }
    60%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; height: 1px; }
}

.animate .underline {
    animation: drawLine 3s infinite ease-out forwards ;
}

@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;
}