
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Estilos para la secciÃ³n de IntroducciÃ³n */
.ac-introduccion-contenedores {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
}

.ac-introduccion-contenedores:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0.8;
}

.ac-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ac-intro-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.ac-intro-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

.ac-intro-content p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Estilos para la secciÃ³n de Tipos de Adaptaciones */
.ac-tipos-adaptaciones {
    padding: 100px 20px;
    background-color: #222;
    background-image: url('../img/pattern-dark.png');
    background-size: 200px;
    color: white;
    text-align: center;
    position: relative;
}

.ac-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.85);
    z-index: 1;
}

.ac-tipos-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.ac-tipos-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-tipos-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.ac-tipo {
    background-color: #222;
    border-radius: 8px;
    padding: 40px 20px;
    width: calc(33.333% - 20px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.ac-tipo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.3);
}

.ac-tipo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff0000, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ac-tipo:hover:before {
    transform: scaleX(1);
}

.ac-tipo-icon {
    margin-bottom: 25px;
    background-color: rgba(255, 0, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.ac-tipo:hover .ac-tipo-icon {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.ac-tipo i {
    color: #ff0000;
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.ac-tipo:hover i {
    color: #ff3333;
}

.ac-tipo h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
    transition: color 0.3s ease;
}

.ac-tipo:hover h3 {
    color: #ff9999;
}

.ac-tipo p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Estilos para la secciÃ³n de Proyecto: Antes y DespuÃ©s */
.ac-proyecto-contenedores {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.ac-proyecto-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ac-proyecto-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.ac-proyecto-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

.ac-proyecto-content p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ac-proyecto-imagenes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.ac-imagen-antes, .ac-imagen-despues {
    flex: 1;
    max-width: 45%;
    text-align: center;
    transition: transform 0.4s ease;
}

.ac-imagen-antes:hover, .ac-imagen-despues:hover {
    transform: scale(1.02);
}

.ac-imagen-antes img, .ac-imagen-despues img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease;
}

.ac-imagen-antes:hover img, .ac-imagen-despues:hover img {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.ac-imagen-antes p, .ac-imagen-despues p {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #555;
    font-weight: 600;
}

/* Estilos para la secciÃ³n de Beneficios */
.ac-beneficios-contenedores {
    padding: 100px 20px;
    background-color: #222;
    background-image: url('../img/pattern-dark.png');
    background-size: 200px;
    color: white;
    text-align: center;
    position: relative;
}

.ac-beneficios-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.ac-beneficios-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-beneficios-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.ac-beneficio {
    background-color: #222;
    border-radius: 8px;
    padding: 40px 20px;
    width: calc(33.333% - 20px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.ac-beneficio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.3);
}

.ac-beneficio:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff0000, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ac-beneficio:hover:before {
    transform: scaleX(1);
}

.ac-beneficio-icon {
    margin-bottom: 25px;
    background-color: rgba(255, 0, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.ac-beneficio:hover .ac-beneficio-icon {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.ac-beneficio i {
    color: #ff0000;
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.ac-beneficio:hover i {
    color: #ff3333;
}

.ac-beneficio h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
    transition: color 0.3s ease;
}

.ac-beneficio:hover h3 {
    color: #ff9999;
}

.ac-beneficio p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Estilos para el CTA */
.ac-cta-contenedores {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
}

.ac-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.ac-cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #222;
}

.ac-cta-content p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
}

.ac-cta-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.ac-cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.ac-cta-button:hover {
    background-color: #d30000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.ac-cta-button:hover:before {
    left: 100%;
}

/* Estilos para animaciones y responsive */
@media (max-width: 992px) {
    .ac-tipos-list, .ac-beneficios-list {
        flex-wrap: wrap;
    }

    .ac-tipo, .ac-beneficio {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .ac-proyecto-imagenes {
        flex-direction: column;
        gap: 30px;
    }

    .ac-imagen-antes, .ac-imagen-despues {
        max-width: 100%;
    }

    .ac-tipo, .ac-beneficio {
        width: 100%;
    }

    .ac-intro-content h2,
    .ac-tipos-content h2,
    .ac-proyecto-content h2,
    .ac-beneficios-content h2,
    .ac-cta-content h2 {
        font-size: 2.2rem;
    }
}

/* Estilos para la animaciÃ³n fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== DiseÃ±o Responsivo Optimizado ===== */

/* Tablet y mÃ³viles grandes */
/* Estilos responsivos generales */
@media (max-width: 992px) {
    .ac-hero {
        height: 500px;
    }

    .ac-hero-content {
        padding-inline: 50px;
    }

    .ac-hero-content h1 {
        font-size: 2.5rem;
    }

    .ac-hero-content p {
        font-size: 1.2rem;
    }

    /* Cambia las tarjetas a diseÃ±o de columna */
    .ac-tipos-list,
    .ac-beneficios-list {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .ac-tipo,
    .ac-beneficio {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .ac-hero {
        height: 400px;
        justify-content: center;
    }

    .ac-hero-content {
        padding-inline: 20px;
        width: 100%;
        left: 0;
        transform: none;
        text-align: center;
    }

    .ac-hero-content h1 {
        font-size: 2rem;
    }

    .ac-hero-content p {
        font-size: 1rem;
    }

    .ac-proyecto-imagenes {
        flex-direction: column;
        gap: 30px;
    }

    .ac-imagen-antes,
    .ac-imagen-despues {
        max-width: 100%;
    }

    .ac-intro-content h2,
    .ac-tipos-content h2,
    .ac-proyecto-content h2,
    .ac-beneficios-content h2,
    .ac-cta-content h2 {
        font-size: 2.2rem;
    }

    .ac-intro-content p,
    .ac-proyecto-content p,
    .ac-beneficios-content p,
    .ac-cta-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .ac-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }


    /* Asegura que las tarjetas se apilen verticalmente */
    .ac-tipos-list,
    .ac-beneficios-list {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .ac-tipo,
    .ac-beneficio {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ac-hero {
        height: 350px;
    }

    .ac-hero-content h1 {
        font-size: 1.8rem;
    }

    .ac-intro-content h2,
    .ac-cta-content h2 {
        font-size: 1.8rem;
    }

}