body {
    background: #1b1b1b;
    margin: 0;
    padding: 20px;
}

* {
    box-sizing: border-box;
}

.container {
    display: flex;
    gap: 20px;
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.main-image {
    width: 60%;
    height: auto;
    border-radius: 50% 50% 8px 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-image {
    width: 30%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20%;
}

.title {
    font-family: 'Bodoni FLF', serif;
    font-size: 4.7em;
    text-align: center;
}

.title .design {
    color: white;
}

.title .interiores {
    color: #7794a2;
}

.description {
    font-family: 'Lato', sans-serif;
    font-size: 1.3em;
    line-height: 1.8;
    color: white;
    text-align: center;
    max-width: 40ch;
    margin: 0 auto;
}

.right-section {
    flex: 1.5;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-row {
    display: flex;
    gap: 15px;
    height: 400px;
    align-items: stretch;
}

.tarjeta {
    position: relative;
    cursor: pointer;
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-10px);
}

.tarjeta-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-style: preserve-3d;
}

.tarjeta:hover .tarjeta-inner {
    transform: rotateY(180deg);
}

.tarjeta-front,
.tarjeta-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    overflow: hidden;
}

.tarjeta-front {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #7794a2;
    padding: 0;
}

.tarjeta-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.5s ease;
    display: block;
}

.tarjeta:hover .tarjeta-front {
    box-shadow: 0 5px 15px rgba(119, 148, 162, 0.4);
}

.tarjeta-back {
    background: linear-gradient(135deg, #7794a2 0%, #5a7a8a 100%);
    transform: rotateY(180deg);
    color: white;
    font-family: 'Lato', sans-serif;
    padding: 25px;
    text-align: center;
    line-height: 1.4;
}

.tarjeta-back .card-title {
    font-family: 'Bodoni FLF', serif;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.tarjeta-back .card-text {
    font-size: 1em;
    line-height: 1.5;
    opacity: 0.95;
}

.tarjeta img {
    transition: all 0.5s ease;
}

.tarjeta:hover .tarjeta-front img {
    transform: scale(1.05);
}

.tarjeta-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(119, 148, 162, 0.1) 0%, rgba(255,255,255,0.05) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tarjeta:hover .tarjeta-front::after {
    opacity: 1;
}

.tarjeta.large {
    flex: 2;
}

.tarjeta.small {
    flex: 1;
}

@media (max-width: 1024px) {
    .title {
        font-size: 4em;
    }

    .image-row {
        height: auto;
        align-items: stretch;
    }

    .tarjeta.large,
    .tarjeta.small {
        height: 300px;
    }

    .tarjeta-back .card-text {
        font-size: 0.9em;
    }

    .tarjeta-back .card-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 40px;
    }

    .title {
        font-size: 4em;
    }

    .description {
        font-size: 1.1em;
        max-width: 32ch;
    }

    .image-row {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }

    .tarjeta.large,
    .tarjeta.small {
        flex: unset;
        width: 100%;
        height: 280px;
        margin: 0 auto;
        max-width: 350px;
    }

    .small-image {
        margin-top: 10%;
    }

    .tarjeta-back .card-text {
        font-size: 0.85em;
        padding: 15px;
    }

    .tarjeta-back .card-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 3em;
    }

    .description {
        font-size: 1em;
        line-height: 1.6;
        max-width: 28ch;
    }

    .container {
        padding: 10px;
    }

    .tarjeta.large,
    .tarjeta.small {
        height: 250px;
        max-width: 280px;
    }

    .tarjeta-back .card-text {
        font-size: 0.8em;
        padding: 12px;
    }

    .tarjeta-back .card-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
}
