#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;
    max-width: 339px;
    max-height: 339px;
    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.1rem;
    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: 2.2rem;
    }

    .feature-text p {
        font-size: 1.15rem;
    }
}

@media (min-width: 1200px) {
    .feature-text h2 {
        font-size: 2.5rem;
    }

    .feature-text p {
        font-size: 1.2rem;
    }
}

/* SECCIÓN FEATURE ANIMADA */
#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;
}

/* TEXTO DESCRIPTIVO */
.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* RESPONSIVE MOBILE-FIRST */
@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: 2.2rem;
    }

    .feature-text p {
        font-size: 1.15rem;
    }
}

@media (min-width: 1200px) {
    .feature-text h2 {
        font-size: 2.5rem;
    }

    .feature-text p {
        font-size: 1.2rem;
    }
}


#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;
    max-height: 369px;
    display: block;
}

/* BOTONES */
.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: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .carousel-container h2 {
        font-size: 2.5rem;
    }
}

/* SECCIÓN MAPA */
#map-section {
    width: 100%;
    padding: 3rem 1rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
}

.map-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.map-container h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* MAP WRAPPER RESPONSIVE */
.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.5rem;
    }
}

/* 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.1rem;
    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.2rem;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    background: #fff;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    display: none;
}

.faq-answer.show {
    display: block;
}

@media (min-width: 768px) {
    .faq-container h2 {
        font-size: 2.2rem;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-answer {
        font-size: 1.1rem;
    }
}

#modern-footer {
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(135deg,rgb(1, 1, 43),rgb(14, 17, 32));
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* IMAGEN */
.footer-image img {
    width: 100%;
    max-width: 360px;
    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: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #ffcc00;
}

.footer-content p {
    font-size: 1rem;
    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.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn.call {
    background: #ff0000;
    color: #f9f6f3;
}

@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.1rem;
    }
}

.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: 1rem;
    line-height: 1.6;
    color: #444;
  }

  .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;
    }
  }