:root {
            --primary: #c46424;
            --primary-dark: #ff6b78;
            --secondary: #111;
            --dark: #000;
            --light: #fff;
            --gray: #333;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--dark);
            color: var(--light);
            overflow-x: hidden;
            line-height: 1.6;
        }

        section {
            padding: 100px 0;
            position: relative;
        }

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

        h1, h2, h3, h4 {
            font-weight: 800;
            line-height: 1.2;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
        }

        h2 {
            font-size: clamp(2rem, 4vw, 3.5rem);
            position: relative;
            display: inline-block;
            margin-bottom: 3rem;
        }

        h2::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 80px;
            height: 4px;
            background: var(--primary);
        }

        h3 {
            font-size: clamp(1.2rem, 2vw, 1.8rem);
            color: var(--primary);
        }

        p {
            margin-bottom: 1.5rem;
            font-size: clamp(1rem, 1.5vw, 1.1rem);
        }

        a {
            text-decoration: none;
            color: var(--light);
            transition: var(--transition);
        }

        img {
            max-width: 100%;
            display: block;
        }

        .btn {
            display: inline-block;
            padding: 12px 28px;
            background: var(--primary);
            color: var(--dark);
            font-weight: 600;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-dark);
            transition: var(--transition);
            z-index: -1;
        }

        .btn:hover::before {
            left: 0;
        }

        .btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(255, 152, 162, 0.3);
        }

        /* Header */
        header {
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            padding: 20px 0;
            z-index: 1000;
            transition: var(--transition);
        }

        header.sticky {
            background: rgba(0, 0, 0, 0.9);
            padding: 15px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .navbar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .navbar a {
            position: relative;
            margin-left: 30px;
            padding: 10px 0;
            font-weight: 500;
        }

        .navbar a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary);
            transition: var(--transition);
        }

        .navbar a:hover::after,
        .navbar a.active::after {
            width: 100%;
        }

        .navbar a.active {
            color: var(--primary);
        }

        .hamburger {
            display: none;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(255, 152, 162, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
        }

        .hero-content {
            max-width: 800px;
        }

        .hero h1 span {
            color: var(--primary);
            position: relative;
            display: inline-block;
        }

        .hero h1 span::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 10px;
            bottom: 5px;
            left: 0;
            background-color: rgba(255, 152, 162, 0.3);
            z-index: -1;
        }

        .typing-text {
            height: 40px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
        }

        .typing-text span {
            position: relative;
            color: var(--primary);
            font-weight: 600;
            margin-left: 10px;
        }

        .typing-text span::after {
            content: '';
            position: absolute;
            right: -5px;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: var(--primary);
            animation: cursor 1s infinite;
        }

        @keyframes cursor {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        .social-icon {
            display: flex;
            margin: 40px 0;
        }

        .social-icon a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 152, 162, 0.5);
            border-radius: 50%;
            margin-right: 20px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .social-icon a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: var(--primary);
            transition: var(--transition);
            z-index: -1;
        }

        .social-icon a:hover::before {
            width: 100%;
        }

        .social-icon a:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(255, 152, 162, 0.2);
            color: var(--dark);
        }

        .social-icon i {
            font-size: 20px;
        }

        /* Services Section */
        .services {
            position: relative;
            background-color: var(--secondary);
        }

        .services-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .services-header h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 30px;
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.05);
            height: 100%;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 152, 162, 0.3);
        }

        .service-icon {
            font-size: 40px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .service-card h3 {
            margin-bottom: 15px;
        }

        /* Skills Section */
        .skills {
            background-color: var(--dark);
        }

        .skills-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .skills-header h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 40px;
        }

        .skill-item {
            text-align: center;
            width: 160px;
        }

        .skill-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 50%;
            border: 1px solid rgba(255, 152, 162, 0.3);
            transition: var(--transition);
        }

        .skill-item:hover .skill-icon {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(255, 152, 162, 0.2);
            border-color: var(--primary);
        }

        .skill-icon img {
            width: 50px;
            height: 50px;
            object-fit: contain;
        }

        .skill-name {
            font-weight: 600;
            color: var(--light);
        }

        /* Education Section */
        .education {
            background-color: var(--secondary);
        }

        .education-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .education-header h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: rgba(255, 152, 162, 0.3);
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        .timeline-item {
            padding: 20px 40px;
            position: relative;
            width: 50%;
            box-sizing: border-box;
            opacity: 0;
            transform: translateY(50px);
            transition: var(--transition);
        }

        .timeline-item.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item:nth-child(odd) {
            left: 0;
            text-align: right;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline-content {
            padding: 30px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: var(--transition);
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 152, 162, 0.3);
        }

        .timeline-date {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 10px;
        }

        .timeline-dot {
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: var(--primary);
            border-radius: 50%;
            top: 40px;
            z-index: 1;
        }

        .timeline-item:nth-child(odd) .timeline-dot {
            right: -10px;
        }

        .timeline-item:nth-child(even) .timeline-dot {
            left: -10px;
        }

        /* Contact Section */
        .contact {
            background-color: var(--dark);
        }

        .contact-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .contact-header h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .contact-icon {
            font-size: 20px;
            color: var(--primary);
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.03);
            padding: 40px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            color: var(--light);
            font-family: inherit;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        /* Footer */
        footer {
            background-color: var(--secondary);
            text-align: center;
            padding: 30px 0;
            position: relative;
        }

        .footer-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .footer-logo {
            font-size: 2rem;
            font-weight: 800;
            color: var(--light);
            margin-bottom: 20px;
        }

        .footer-logo span {
            color: var(--primary);
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin: 20px 0;
            gap: 20px;
        }

        .footer-links a {
            padding: 8px 15px;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .copyright {
            margin-top: 30px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            right: 30px;
            bottom: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            z-index: 999;
        }

        .back-to-top.active {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--primary-dark);
            transform: translateY(-5px);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease forwards;
        }

        /* Horizontal scrolling section */
        .horizontal-scroll {
            position: relative;
            height: 600px;
            overflow: hidden;
        }

        .horizontal-content {
            display: flex;
            position: absolute;
            height: 100%;
            will-change: transform;
        }

        .horizontal-item {
    width: 300px;
    height: 300px;
    margin-right: 40px;
    margin-top: 100px; /* Añadido para bajar los recuadros */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 152, 162, 0.2);
        }

        .horizontal-item:hover {
            transform: translateY(-10px);
            border-color: var(--primary);
        }

        .horizontal-item img {
            width: 60%;
            height: 60%;
            object-fit: contain;
        }

        /* Vertical scrolling section */
        .vertical-scroll {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        .vertical-content {
            display: flex;
            height: 100%;
        }

        .col-left, .col-right {
            width: 50%;
            height: 100%;
        }

        .col-left {
            position: sticky;
            top: 0;
            display: flex;
            align-items: center;
            padding: 0 50px;
        }

        .col-right {
            padding: 100px 0;
        }

        .vertical-item {
            height: 100vh;
            padding: 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Responsive */
        @media (max-width: 991px) {
            .hamburger {
                display: block;
                margin-left: 20px;
                z-index: 1001;
            }

            .navbar {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100%;
                background: rgba(17, 17, 17, 0.95);
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
                padding: 50px;
                transition: var(--transition);
            }

            .navbar.active {
                right: 0;
            }

            .navbar a {
                margin: 15px 0;
                font-size: 1.2rem;
            }

            .vertical-content {
                flex-direction: column;
            }

            .col-left, .col-right {
                width: 100%;
            }

            .col-left {
                height: auto;
                position: relative;
                padding: 100px 0;
            }

            .timeline::after {
                left: 40px;
            }

            .timeline-item {
                width: 100%;
                padding-left: 80px;
                padding-right: 0;
            }

            .timeline-item:nth-child(odd) {
                text-align: left;
            }

            .timeline-item:nth-child(even) {
                left: 0;
            }

            .timeline-item:nth-child(odd) .timeline-dot {
                left: 30px;
                right: auto;
            }

            .timeline-item:nth-child(even) .timeline-dot {
                left: 30px;
            }
        }

        @media (max-width: 767px) {
            section {
                padding: 80px 0;
            }

            .horizontal-scroll {
                height: 400px;
            }

            .hero-content {
                text-align: center;
            }

            .social-icon {
                justify-content: center;
            }

            .contact-container {
                grid-template-columns: 1fr;
            }
        }
    /* Ajustes responsive para móviles */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-content h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
  }

  .social-icon {
    justify-content: center;
    gap: 15px;
  }

  .btn {
    display: block;
    margin: 15px auto;
  }
}
/* ===== Projects Section ===== */
.projects {
  background: var(--secondary);
  color: var(--light);
  padding: 80px 20px;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.projects-header p {
  color: var(--light);
  opacity: 0.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--gray);
  border: 2px solid var(--primary);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
}

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

.project-image img {
  width: 100%;
  display: block;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--light);
  opacity: 0.85;
}

.projects-footer {
  text-align: center;
  margin-top: 40px;
}

.projects-footer .btn {
  background: var(--primary);
  color: var(--light);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.projects-footer .btn:hover {
  background: var(--primary-dark);
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  gap: 1.5rem; 
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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