/* inicio.css - Estilos para la sección de inicio */
/* Última actualización: 2025-03-12 */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secondary-light);
}

/* Sección de tecnologías y órbita 3D */
.tecnologias {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 2rem;
}

.tecnologias h1 {
    text-align: center;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 3rem;
    margin-top: 1rem;
    z-index: 20;
    width: 100%;
}

.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: orbit3d 20s linear infinite;
}

.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    background: radial-gradient(circle at 30% 30%, var(--color-primary-light), var(--color-secondary));
    border: 3px solid var(--color-secondary-light);
    border-radius: 50%;
    box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.6), 5px 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
}

/* Posicionamiento de logos en la órbita */
.logos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.logos img {
    width: 50px;
    height: 50px;
}

/* Distribución de logos (puedes ajustar los ángulos si es necesario) */
.logos:nth-child(2) {
    transform: rotateY(0deg) translateZ(200px);
}

.logos:nth-child(3) {
    transform: rotateY(30deg) translateZ(200px);
}

.logos:nth-child(4) {
    transform: rotateY(60deg) translateZ(200px);
}

.logos:nth-child(5) {
    transform: rotateY(90deg) translateZ(200px);
}

.logos:nth-child(6) {
    transform: rotateY(120deg) translateZ(200px);
}

.logos:nth-child(7) {
    transform: rotateY(150deg) translateZ(200px);
}

.logos:nth-child(8) {
    transform: rotateY(180deg) translateZ(200px);
}

.logos:nth-child(9) {
    transform: rotateY(210deg) translateZ(200px);
}

.logos:nth-child(10) {
    transform: rotateY(240deg) translateZ(200px);
}

.logos:nth-child(11) {
    transform: rotateY(270deg) translateZ(200px);
}

.logos:nth-child(12) {
    transform: rotateY(300deg) translateZ(200px);
}

.logos:nth-child(13) {
    transform: rotateY(330deg) translateZ(200px);
}

/* Animación de órbita 3D */
@keyframes orbit3d {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

/* ================= Animaciones de Slide-In ================= */

/* Para iniciar oculto */
.slide-hidden {
    opacity: 0;
}

/* Entrada desde la izquierda */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

/* Salida hacia la izquierda */
@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.slide-out-left {
    animation: slideOutToLeft 0.8s ease-out forwards;
}

/* Entrada desde la derecha */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

/* Salida hacia la derecha */
@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.slide-out-right {
    animation: slideOutToRight 0.8s ease-out forwards;
}


/* Responsividad para móviles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 4rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .tecnologias {
        max-width: 300px;
        width: 100%;
    }

    .logos img {
        width: 30px;
        height: 30px;
    }
}