/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modo claro */
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #222222;
    --text-light: #666666;
    --bg-color: #ffffff;
    --section-bg: #f9f9f9;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --gradient: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

[data-theme="dark"] {
    /* Modo oscuro */
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #cccccc;
    --text-color: #f0f0f0;
    --text-light: #aaaaaa;
    --bg-color: #111111;
    --section-bg: #1a1a1a;
    --border-color: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* ===== INDICADOR DE PROGRESO DE SCROLL ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg, #fff, #ccc);
}

/* Navbar - ajustar z-index para que el progreso quede debajo */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background-color: rgba(17, 17, 17, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    height: 80px;
}

/* ===== LOGO CON ICONO - SOLUCIÓN RESPONSIVE COMPLETA ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    gap: 12px;
    height: 100%;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    transition: var(--transition);
    filter: brightness(0) invert(0);
}

[data-theme="dark"] .logo-icon {
    filter: brightness(0) invert(1);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-top: 3px;
    white-space: nowrap;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    background-color: var(--section-bg);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: calc(250% + 40vw);
    height: 100%;
    animation: carouselScroll 60s linear infinite;
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

.carousel-slide {
    flex: 0 0 auto;
    width: 100vw;
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hero-line {
    display: block;
    margin-bottom: 10px;
    color: white !important;
    opacity: 0;
    transform: translateY(20px);
    animation: typeWriter 0.8s ease forwards;
}

.hero-line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-line:nth-child(2) {
    animation-delay: 0.8s;
}

.hero-line:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes typeWriter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    position: relative;
    display: inline-block;
    color: white !important;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
}

/* COMENTAR O ELIMINAR ESTA SECCIÓN COMPLETA */
/*
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}
*/

/* ANIMACIÓN DE ENTRADA - CORTINA ELEGANTE */
.curtain-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
}

.curtain-panel {
    flex: 1;
    background-color: var(--primary-color);
    transform-origin: top;
    animation: curtainOpen 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.curtain-panel:nth-child(1) {
    animation-delay: 0.1s;
}

.curtain-panel:nth-child(2) {
    animation-delay: 0.2s;
}

.curtain-panel:nth-child(3) {
    animation-delay: 0.3s;
}

.curtain-panel:nth-child(4) {
    animation-delay: 0.4s;
}

.curtain-panel:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes curtainOpen {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0);
    }
}

/* Añadir animación de aparición suave al contenido */
body {
    opacity: 0;
    animation: fadeInContent 0.8s ease 1s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* Desplazamiento suave para los elementos principales */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease 0.8s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones generales */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Acerca de */
.about-section {
    background-color: var(--section-bg);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-paragraph {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.founder-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.founder-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.founder-link:hover::after {
    width: 100%;
}

.about-visual {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
}

.visual-element {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.line-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 200px;
    height: 2px;
    background-color: var(--primary-color);
}

.square-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary-color);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contacto */
.contact-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-text {
    flex: 1;
}

.contact-paragraph {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-info {
    background-color: var(--section-bg);
    padding: 30px;
    border-radius: 4px;
}

.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.email-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-email {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-visual {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
}

.contact-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    animation: ringPulse 3s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background-color: var(--section-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-visual, .contact-visual {
        flex: 0 0 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-sub {
        font-size: 0.6rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Pantallas muy peque\u00f1as - Solo icono */
@media (max-width: 360px) {
    .logo-text-container {
        display: none;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .carousel-track {
        width: calc(500% + 40vw);
    }
}