@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    background-color: #050505;
    margin: 0;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: 350px 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 25px;
    max-width: 1300px;
    width: 100%;
    perspective: 1000px;
}

.left-panel {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    border: 6px solid #fff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #000;
    border-radius: 10px;
    transform-origin: center center;
}

.card {
    background-color: #fff;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 10px;
    transform-origin: center center;
}

.bottom-banner {
    grid-column: 2 / 4;
    grid-row: 3;
    background-color: #fff;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 10px;
}

.left-panel:hover {
    transform: translateY(-20px) scale(1.03) rotateY(5deg);
    box-shadow: -20px 30px 60px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 10;
    border-color: #f0f0f0;
}

.card:hover, .bottom-banner:hover {
    transform: translateY(-20px) scale(1.05) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.logo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.left-panel:hover .logo {
    transform: scale(1.1) rotate(360deg);
}

.brand-name {
    color: #fff;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 15px 0;
    text-align: center;
}

.divider {
    width: 85%;
    height: 3px;
    background-color: #fff;
    margin: 15px 0;
}

.subtitle {
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 20px 0;
}

.about-box {
    background-color: #fff;
    color: #000;
    padding: 25px;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.7;
    margin-top: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.left-panel:hover .about-box {
    transform: scale(1.05);
}

.card-diseno { grid-column: 2; grid-row: 1; }
.card-analisis { grid-column: 3; grid-row: 1; }
.card-desarrollo { grid-column: 2; grid-row: 2; }
.card-branding { grid-column: 3; grid-row: 2; }

.card h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #111;
}

.card p {
    font-size: 1em;
    line-height: 1.7;
    color: #444;
    font-weight: 400;
}

.bottom-banner p {
    font-style: italic;
    font-size: 1.15em;
    margin: 0;
    max-width: 80%;
    color: #222;
    font-weight: 600;
}

.small-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.bottom-banner:hover .small-logo {
    transform: scale(1.2) rotate(-15deg);
}

@keyframes epicEntrance {
    0% { opacity: 0; transform: translateY(150px) scale(0.8) rotateX(-20deg); }
    60% { opacity: 1; transform: translateY(-15px) scale(1.02) rotateX(5deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

.left-panel { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.card-diseno { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.card-analisis { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }
.card-desarrollo { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both; }
.card-branding { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both; }
.bottom-banner { animation: epicEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both; }

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .left-panel { grid-column: 1; grid-row: auto; }
    .card-diseno, .card-analisis, .card-desarrollo, .card-branding, .bottom-banner {
        grid-column: 1;
        grid-row: auto;
    }
}
