/* Reset y variables */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --accent-color: #00cec9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5%;
    background: linear-gradient(135deg, var(--light-color), var(--secondary-color));
    perspective: 1000px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--accent-color);
}

/* Efecto 3D: Cubo */
.hero-3d {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 92, 231, 0.3);
    box-shadow: inset 0 0 60px rgba(108, 92, 231, 0.4), 0 0 60px rgba(108, 92, 231, 0.4);
    font-size: 2rem;
    color: white;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.front  { transform: rotateY(0deg) translateZ(150px); }
.back   { transform: rotateY(180deg) translateZ(150px); }
.right  { transform: rotateY(90deg) translateZ(150px); }
.left   { transform: rotateY(-90deg) translateZ(150px); }
.top    { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Servicios */
.services {
    padding: 5rem 5%;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    color: white;
}

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Testimonios */
.testimonials {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--light-color), var(--secondary-color));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    padding: 5rem 5% 2rem;
    background-color: var(--dark-color);
    color: white;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 2rem;
    color: #b2bec3;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-form input {
    padding: 0.8rem;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.footer-form button {
    padding: 0.8rem;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #636e72;
    color: #b2bec3;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-3d {
        width: 200px;
        height: 200px;
    }

    .face {
        width: 200px;
        height: 200px;
    }
}