/* 
* TechVision - Main Stylesheet
* A professional technology landing page stylesheet
*/

/* Variables de colores basados en la imagen thinkes.jpg */
:root {
    --primary-color: #2a6dc9; /* Azul principal */
    --secondary-color: #1e4b8f; /* Azul oscuro */
    --accent-color: #4c9aff; /* Azul claro */
    --dark-color: #121e33; /* Azul muy oscuro */
    --light-color: #f5f9ff; /* Azul muy claro */
    --text-color: #333333;
    --light-text: #ffffff;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header y navegación */
header {
    background-color: var(--dark-color);
    padding: 1.5rem 0 1rem; /* Aumenta el padding superior para acomodar el logo flotante */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(18, 30, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Necesario para posicionar el logo absolutamente */
    /*padding-top: 60px; /* Espacio para el logo flotante */
}

.logo {
    position: absolute;
    /*top: -30px; /* Ajusta este valor para controlar cuánto sobresale hacia arriba */
    left: 0;
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    padding: 0;
    background: none;
    box-shadow: none;
}

.logo img {
    height: 80px; /* Tamaño más grande para el logo */
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); /* Sombra suave para el logo */
}

.logo:hover img {
    transform: translateY(-5px); /* El logo se eleva ligeramente al pasar el cursor */
}

.logo span {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto; /* Empuja los enlaces hacia la derecha */
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: var(--light-text);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Efecto de patrón de fondo para el hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="1" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    background-repeat: repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    left: 0;
    width: 100%;
    height: 10rem;
    background-color: var(--light-color);
    transform: skewY(-3deg);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    padding-right: 1rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Subrayado decorativo para el título */
.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contenedor de la imagen hero */
.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

/* Líneas decorativas que conectan los cubos */
.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 25%;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><line x1="0" y1="50" x2="100" y2="50" stroke="%234c9aff" stroke-width="1" stroke-dasharray="5,5" stroke-opacity="0.3"/><line x1="50" y1="0" x2="50" y2="100" stroke="%234c9aff" stroke-width="1" stroke-dasharray="5,5" stroke-opacity="0.3"/></svg>');
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
    animation: rotate 20s linear infinite;
}

/* Estilos para la imagen hero */
.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    object-fit: cover;
    height: 350px;
    filter: brightness(1.05) contrast(1.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 4s infinite;
}

/* Efecto hover para la imagen */
.hero-image img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1) contrast(1.15);
}

/* Mejora del efecto de hover para la imagen hero */
.hero-image:hover .cube-1 {
    animation-play-state: paused;
    transform: translateY(-10px) rotate(25deg);
}

.hero-image:hover .cube-2 {
    animation-play-state: paused;
    transform: translateY(10px) rotate(-20deg);
}

.hero-image:hover .cube-3 {
    animation-play-state: paused;
    transform: translateY(-5px) rotate(40deg);
}

/* Efecto de brillo para los cubos al hacer hover en la imagen */
.hero-image:hover .cube-1,
.hero-image:hover .cube-2,
.hero-image:hover .cube-3 {
    box-shadow: 0 0 15px rgba(76, 154, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Elementos cúbicos decorativos */
.cube-1, .cube-2, .cube-3 {
    position: absolute;
    background-color: rgba(76, 154, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Primer cubo decorativo */
.cube-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: 20%;
    transform: rotate(15deg);
    animation-delay: 0.5s;
}

/* Segundo cubo decorativo */
.cube-2 {
    width: 40px;
    height: 40px;
    bottom: 30px;
    left: 10%;
    transform: rotate(-10deg);
    animation-delay: 1.5s;
}

/* Tercer cubo decorativo (más pequeño) */
.cube-3 {
    width: 25px;
    height: 25px;
    top: 40%;
    right: 5%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Efecto de pseudo-elementos para los cubos */
.cube-1::before, .cube-2::before, .cube-3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 154, 255, 0.1);
    transform: translateZ(-10px);
    filter: blur(2px);
}

.cube-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    transform: rotateX(20deg) rotateY(20deg);
}

.cube-2::after, .cube-3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    transform: rotateX(-15deg) rotateY(-15deg);
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-text);
    margin-left: 1rem;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

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

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--dark-color);
    color: var(--light-text);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: 0;
    width: 100%;
    height: 10rem;
    background-color: var(--light-color);
    transform: skewY(3deg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--light-color);
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

.cta .btn {
    margin: 0 0.5rem;
}

/* Estilos específicos para el botón outline en CTA */
.cta .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Iconos en la información de contacto */
.footer-column ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animación flotante para los elementos decorativos */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Animación de rotación para las líneas */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Efecto de resplandor para la imagen */
@keyframes pulse {
    0% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(76, 154, 255, 0.3);
    }
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

.feature-card, .hero-text, .about-text {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content, .about-content {
        flex-direction: column;
    }

    .hero-text, .about-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding-top: 40px; /* Menos espacio en móviles */
    }
    
    .logo {
        top: -20px; /* Menos elevación en móviles */
        left: 0;
    }
    
    .logo img {
        height: 60px; /* Logo más pequeño en móviles */
    }
    
    .hero-image img {
        height: 250px; /* Imagen hero más pequeña en móviles */
    }
    
    /* Ocultar cubos en pantallas pequeñas */
    .cube-1, .cube-2, .cube-3 {
        display: none;
    }
    
    .hero-text h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Ajuste para el botón de menú móvil */
    .menu-btn {
        margin-left: auto; /* Empuja el botón hacia la derecha */
    }
    
    .menu-btn {
        display: flex;
        color: var(--light-text);
        font-size: 1.5rem;
        background-color: var(--accent-color);
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title h2, .about-text h2, .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .logo {
        top: -15px;
    }
    
    .logo img {
        height: 50px; /* Logo aún más pequeño en móviles pequeños */
    }
    
    .hero-image img {
        height: 200px; /* Imagen hero aún más pequeña en móviles pequeños */
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p, .cta p {
        font-size: 1rem;
    }
    
    .section-title h2, .about-text h2, .cta h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Efectos de hover adicionales */

/* Estilos para el scroll */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
