* {
    margin: 0;
    box-sizing: border-box;
}

body { 
    background-color: #f5f0e8;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    animation: aparecer 1s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.inicio img {
    width: 100%;
    height: 750px;
    display: block;
}

.infoInicial {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #f5f0e8;
    border-top: 4px solid #8b6914;
    border-bottom: 4px solid #8b6914;
    padding: 2.5rem 3rem;
}

.introduccion {
    flex: 1;
    flex-direction: column;
}

.titulo h1 {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    font-weight: 900;
    text-align: center;
    margin: 0 0 20px 0;
    color: #4a3800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
    background: #ffffff;
    border: 2px solid #8b6914;
    border-radius: 16px;
    padding: 14px 20px;
}

.textoInicial {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.textoInicial p {
    font-family: "Source Sans 3", sans-serif;
    color: #4a3800;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #c8a84b;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
    text-align: justify;
}

.imagenInicial img {
    margin: 15px;
    width: 450px;
    height: auto;
    flex-shrink: 0;
    border-radius: 16px;
    border: 2px solid #c8a84b;
}

.contenido {
    background-color: #f5f0e8;
    border-top: 4px solid #8b6914;
    border-bottom: 4px solid #8b6914;
    padding: 50px 60px;
}

.cont1, .cont2, .cont3, .cont4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 50px 0;
}

.cont1 + .cont2,
.cont2 + .cont3,
.cont3 + .cont4 {
    border-top: 3px solid #a9852a;
}

.textoCont {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.textoCont h1 {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
    margin: 0 0 16px 0;
    color: #4a3800;
    text-transform: uppercase;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 20px;
    line-height: 1.2;
    width: 100%;
    border: 2px solid #8b6914;
    letter-spacing: 0.5px;
}

.textoCont p {
    font-family: "Source Sans 3", sans-serif;
    color: #4a3800;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #c8a84b;
    padding: 14px 18px;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 8px;
}

.imgCont {
    flex: 0 0 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.imgCont img {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid #c8a84b;
}

.cont2 .contenidoInterno{
    width: 92%;
    margin: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
}

.textoCont ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    counter-reset: lista;
}

.textoCont ul li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    margin: 0 auto;
}

.textoCont ul li {
    position: relative;
    font-family: "Source Sans 3", sans-serif;
    color: #4a3800;
    background: linear-gradient(135deg, #fffdf7, #fdf6e3);
    border: 2px solid #d6b45a;
    border-radius: 18px;
    padding: 22px 22px 22px 70px;
    box-shadow: 0 6px 18px rgba(90, 62, 24, 0.08);
    overflow: hidden;
    transition: all 0.35s ease;
    counter-increment: lista;
}

.textoCont ul li::before {
    content: counter(lista);
    position: absolute;
    left: 22px;
    top: 24px;
    width: 32px;
    height: 32px;
    background-color: #c8a84b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.textoCont ul li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #d6b45a, #8b6914);
}

.textoCont ul li:hover {
    transform: translateY(-4px) translateX(4px);
    border-color: #8b6914;
    box-shadow: 0 10px 25px rgba(90, 62, 24, 0.15);
    background: linear-gradient(135deg, #fffaf0, #f9edc7);
}

.textoCont ul li strong {
    display: block;
    font-size: 20px;
    color: #5A3E18;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textoCont ul li p {
    margin-top: 14px;
    padding: 18px 22px;
    background-color: #fffdf8;
    border: 1.5px solid #d6b45a;
    border-radius: 14px;
    line-height: 1.9;
    text-align: left;
}

.pie {
    background-color: #513807;
}

.pie p {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 500;
    padding: 10px;
    color: #edd6a7;
    text-align: center;
}

/* ========================= TABLET (≤768px) ========================= */
@media (max-width: 768px) {

    .inicio img {
        height: 400px;
    }

    .infoInicial {
        flex-direction: column;
        padding: 1.5rem;
    }

    .titulo h1 {
        font-size: 28px;
    }

    .textoInicial {
        flex-direction: column;
    }

    .imagenInicial img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        margin: 0;
    }

    .contenido {
        padding: 20px 24px;
    }

    .cont1, .cont2, .cont3, .cont4 {
        flex-direction: column;
        padding: 30px 0;
    }

    .imgCont {
        flex: unset;
        width: 100%;
    }

    .imgCont img {
        width: 100%;
        height: 450px;
    }

    .textoCont h1 {
        font-size: 26px;
    }

    .textoCont p {
        font-size: 15px;
    }

    .textoCont ul {
        grid-template-columns: 1fr;
    }

    .textoCont ul li:last-child:nth-child(odd) {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .cont2 .contenidoInterno {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
}

/* ========================= MÓVIL (≤480px) ========================= */
@media (max-width: 480px) {

    .inicio img {
        height: 220px;
        object-fit: cover;
        object-position: center top;
    }

    .infoInicial {
        padding: 1rem;
        gap: 1rem;
    }

    .titulo h1 {
        font-size: 20px;
        padding: 10px 14px;
    }

    .textoInicial p {
        font-size: 14px;
        text-align: left;
    }

    .imagenInicial img {
        width: 100%;
        height: 450px;
        object-fit: cover;
        margin: 0;
    }

    .contenido {
        padding: 14px;
    }

    .cont1, .cont2, .cont3, .cont4 {
        flex-direction: column;
        padding: 20px 0;
        gap: 1rem;
    }

    .textoCont h1 {
        font-size: 20px;
        padding: 10px 14px;
    }

    .textoCont p {
        font-size: 14px;
        text-align: left;
    }

    .imgCont {
        flex: unset;
        width: 100%;
    }

    .imgCont img {
        width: 100%;
        height: 400px;
        border-radius: 12px;
    }

    .textoCont ul {
        grid-template-columns: 1fr;
    }

    .textoCont ul li:last-child:nth-child(odd) {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .textoCont ul li {
        font-size: 14px;
        padding: 16px 16px 16px 56px;
        border-radius: 12px;
    }

    .textoCont ul li::before {
        left: 14px;
        top: 16px;
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .textoCont ul li strong {
        font-size: 16px;
    }

    .cont2 .contenidoInterno {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
}