/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background: #000000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Botón de menú móvil */
.mobile-menu-toggle {
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 4px 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,255,255,0.3);
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Asegurar que el ícono del menú móvil sea siempre visible */
.mobile-menu-toggle i {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.9);
}

.mobile-menu-toggle:hover {
    opacity: 0.9;
    background: rgba(0,0,0,0.5);
    transform: scale(1.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

/* Asegurar que el navbar sea visible en pantallas de computadora */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Estilos para menú móvil activo */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    .nav-links.active li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-menu-toggle.active {
        color: #28a745 !important;
        background: rgba(40, 167, 69, 0.2);
        transform: scale(1.1);
    }
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: #000000;
    color: white;
    text-align: center;
    padding: 120px 2rem 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.tech-icon:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.tech-icon[data-tech="angular"] {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: rgba(221, 0, 49, 0.8);
}

.tech-icon[data-tech="python"] {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    color: rgba(55, 118, 171, 0.8);
}

.tech-icon[data-tech="java"] {
    top: 45%;
    left: 8%;
    animation-delay: 2s;
    color: rgba(247, 202, 24, 0.8);
}

.tech-icon[data-tech="laravel"] {
    top: 35%;
    right: 8%;
    animation-delay: 3s;
    color: rgba(255, 45, 85, 0.8);
}

.tech-icon[data-tech="react"] {
    top: 65%;
    left: 12%;
    animation-delay: 4s;
    color: rgba(97, 218, 251, 0.8);
}

.tech-icon[data-tech="nodejs"] {
    top: 55%;
    right: 12%;
    animation-delay: 5s;
    color: rgba(104, 159, 56, 0.8);
}

.tech-icon[data-tech="vuejs"] {
    top: 75%;
    left: 20%;
    animation-delay: 1.5s;
    color: rgba(65, 184, 131, 0.8);
}

.tech-icon[data-tech="docker"] {
    top: 20%;
    left: 50%;
    animation-delay: 2.5s;
    color: rgba(13, 17, 23, 0.8);
}

.tech-icon[data-tech="aws"] {
    top: 60%;
    left: 50%;
    animation-delay: 3.5s;
    color: rgba(255, 153, 0, 0.8);
}

.tech-icon[data-tech="github"] {
    top: 40%;
    left: 50%;
    color: rgba(36, 41, 46, 0.8);
}

.tech-icon[data-tech="postgresql"] {
    top: 30%;
    left: 25%;
    animation-delay: 1.8s;
    color: rgba(51, 103, 145, 0.8);
}

.tech-icon[data-tech="mongodb"] {
    top: 70%;
    right: 25%;
    animation-delay: 2.2s;
    color: rgba(67, 153, 132, 0.8);
}

.tech-icon[data-tech="android"] {
    top: 50%;
    left: 35%;
    animation-delay: 2.8s;
    color: rgba(164, 198, 57, 0.8);
}

@keyframes float {
    0% {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-35px) rotate(3deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 0.3;
    }
}

/* Hero Content - Ensure it's above floating icons */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
}

/* Sections */
section {
    padding: 80px 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000000;
}

/* Services */
.services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

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

.service-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-card i {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-image {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.service-card h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: #667eea;
    transform: translateY(-2px);
}

.service-card p {
    color: #718096;
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover p {
    color: #4a5568;
}

/* Efecto de borde brillante en hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Portfolio */
.portfolio-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-intro .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #000000;
    background: linear-gradient(45deg, #000000, #333333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-intro .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.portfolio-intro .section-title:hover::before {
    left: 100%;
}

.portfolio-intro .section-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.portfolio-description {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333333;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.8s ease;
}

.portfolio-description:hover::before {
    left: 100%;
}

.portfolio-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    font-weight: 500;
}

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

.portfolio-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: #000000;
}

.portfolio-content p {
    color: #333333;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #000000;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact */
.contact {
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #000000;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #333333;
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
}

.submit-btn {
    background: #000000;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #333333;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffffff;
    opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .portfolio-intro .section-title {
        font-size: 3rem;
    }
    
    .portfolio-description {
        font-size: 1.3rem;
        padding: 1.8rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Mostrar menú móvil */
    .mobile-menu-toggle {
        display: block !important;
        color: #ffffff !important;
        font-size: 1.8rem;
        padding: 0.75rem;
        background: rgba(0,0,0,0.3);
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-intro .section-title {
        font-size: 2.5rem;
    }
    
    .portfolio-description {
        font-size: 1.2rem;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: 2rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
    }
    

    
    /* Mobile floating icons */
    .tech-icon {
        font-size: 1.8rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .tech-icon[data-tech="angular"] {
        top: 8%;
        left: 3%;
    }
    
    .tech-icon[data-tech="python"] {
        top: 18%;
        right: 3%;
    }
    
    .tech-icon[data-tech="java"] {
        top: 38%;
        left: 2%;
    }
    
    .tech-icon[data-tech="laravel"] {
        top: 28%;
        right: 2%;
    }
    
    .tech-icon[data-tech="react"] {
        top: 58%;
        left: 6%;
    }
    
    .tech-icon[data-tech="nodejs"] {
        top: 48%;
        right: 6%;
    }
    
    .tech-icon[data-tech="vuejs"] {
        top: 68%;
        left: 12%;
    }
    
    .tech-icon[data-tech="docker"] {
        top: 12%;
        left: 42%;
    }
    
    .tech-icon[data-tech="aws"] {
        top: 52%;
        left: 42%;
    }
    
    .tech-icon[data-tech="github"] {
        top: 32%;
        left: 42%;
    }
    
    .tech-icon[data-tech="postgresql"] {
        top: 22%;
        left: 25%;
    }
    
    .tech-icon[data-tech="mongodb"] {
        top: 62%;
        right: 25%;
    }
    
    .tech-icon[data-tech="android"] {
        top: 42%;
        left: 35%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .portfolio-intro .section-title {
        font-size: 2rem;
    }
    
    .portfolio-description {
        font-size: 1.1rem;
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: 1.5rem 1rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .service-card i,
    .feature-item i {
        font-size: 3rem;
    }
    

}
    
    /* Extra small mobile floating icons */
    .tech-icon {
        font-size: 1.5rem !important;
    }
    
    .tech-icon[data-tech="angular"] {
        top: 5%;
        left: 2%;
    }
    
    .tech-icon[data-tech="python"] {
        top: 15%;
        right: 2%;
    }
    
    .tech-icon[data-tech="java"] {
        top: 35%;
        left: 1%;
    }
    
    .tech-icon[data-tech="laravel"] {
        top: 25%;
        right: 1%;
    }
    
    .tech-icon[data-tech="react"] {
        top: 55%;
        left: 4%;
    }
    
    .tech-icon[data-tech="nodejs"] {
        top: 45%;
        right: 4%;
    }
    
    .tech-icon[data-tech="vuejs"] {
        top: 65%;
        left: 8%;
    }
    
    .tech-icon[data-tech="docker"] {
        top: 10%;
        left: 40%;
    }
    
    .tech-icon[data-tech="aws"] {
        top: 50%;
        left: 40%;
    }
    
    .tech-icon[data-tech="github"] {
        top: 30%;
        left: 40%;
    }
    
    .tech-icon[data-tech="postgresql"] {
        top: 20%;
        left: 22%;
    }
    
    .tech-icon[data-tech="mongodb"] {
        top: 60%;
        right: 22%;
    }
    
    .tech-icon[data-tech="android"] {
        top: 40%;
        left: 32%;
    }


/* Estilos para los botones del hero */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos para el botón Volver al Inicio */
.back-home-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.back-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.back-button:active {
    transform: translateY(-2px) scale(1.02);
}

.back-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-5px) scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.back-button span {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.back-button:hover span {
    transform: translateX(2px);
}

/* Efecto de borde brillante en hover */
.back-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-button:hover::after {
    opacity: 1;
}

/* Responsive para el botón Volver al Inicio */
@media (max-width: 768px) {
    .back-home-section {
        padding: 3rem 0;
    }
    
    .back-button {
        padding: 1rem 2.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .back-home-section {
        padding: 2.5rem 0;
    }
    
    .back-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }
    
    .back-button i {
        font-size: 1rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE SERVICIOS ===== */

/* Services Hero Section */
.services-hero {
    background: #000000;
    color: white;
    text-align: center;
    padding: 120px 2rem 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Floating Tech Icons para servicios */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.tech-icon:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.tech-icon[data-tech="angular"] {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: rgba(221, 0, 49, 0.8);
}

.tech-icon[data-tech="python"] {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    color: rgba(55, 118, 171, 0.8);
}

.tech-icon[data-tech="java"] {
    top: 45%;
    left: 8%;
    animation-delay: 2s;
    color: rgba(247, 202, 24, 0.8);
}

.tech-icon[data-tech="laravel"] {
    top: 35%;
    right: 8%;
    animation-delay: 3s;
    color: rgba(255, 45, 85, 0.8);
}

.tech-icon[data-tech="react"] {
    top: 65%;
    left: 12%;
    animation-delay: 4s;
    color: rgba(97, 218, 251, 0.8);
}

.tech-icon[data-tech="nodejs"] {
    top: 55%;
    right: 12%;
    animation-delay: 5s;
    color: rgba(104, 159, 56, 0.8);
}

.tech-icon[data-tech="vuejs"] {
    top: 75%;
    left: 20%;
    animation-delay: 1.5s;
    color: rgba(65, 184, 131, 0.8);
}

.tech-icon[data-tech="docker"] {
    top: 20%;
    left: 50%;
    animation-delay: 2.5s;
    color: rgba(13, 17, 23, 0.8);
}

.tech-icon[data-tech="aws"] {
    top: 60%;
    left: 50%;
    animation-delay: 3.5s;
    color: rgba(255, 153, 0, 0.8);
}

.tech-icon[data-tech="github"] {
    top: 40%;
    left: 50%;
    color: rgba(36, 41, 46, 0.8);
}

.tech-icon[data-tech="postgresql"] {
    top: 30%;
    left: 25%;
    animation-delay: 1.8s;
    color: rgba(51, 103, 145, 0.8);
}

.tech-icon[data-tech="mongodb"] {
    top: 70%;
    right: 25%;
    animation-delay: 2.2s;
    color: rgba(67, 153, 132, 0.8);
}

.tech-icon[data-tech="android"] {
    top: 50%;
    left: 35%;
    animation-delay: 2.8s;
    color: rgba(164, 198, 57, 0.8);
}

@keyframes float {
    0% {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-35px) rotate(3deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.services-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Service Detail Section */
.service-detail {
    background: #ffffff;
    padding: 4rem 2rem;
}

.service-detail .container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #000000;
}

.service-detail p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Features Section */
.services-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-item i {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.feature-item h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.feature-item:hover h3 {
    color: #667eea;
    transform: translateY(-2px);
}

.feature-item p {
    color: #718096;
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover p {
    color: #4a5568;
}

/* Efecto de borde brillante en hover */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::after {
    opacity: 1;
}

/* Responsive para servicios */
@media (max-width: 1200px) {
    .services-hero h1 {
        font-size: 3.5rem;
    }
    
    .services-hero p {
        font-size: 1.3rem;
    }
    
    .service-detail h2 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1.2rem;
    }
    
    .service-detail h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-detail h2 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    /* Extra small mobile floating icons */
    .tech-icon {
        font-size: 1.4rem !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Chatbot Robot */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chatbot-toggle i {
    color: white;
    font-size: 24px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar i {
    font-size: 20px;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-info p {
    margin: 5px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: #f1f3f4;
    color: #333;
}

.user-message .message-content {
    background: #667eea;
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: #667eea;
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input button:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

/* Responsive para Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 20px;
        left: 20px;
    }
    
    .chatbot-window {
        width: 300px;
        height: 450px;
        bottom: 70px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-toggle i {
        font-size: 20px;
    }
}

/* Floating Tech Icons para la sección "¿Qué Ofrecemos?" */
.floating-icons-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon-detail {
    position: absolute;
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.6);
    animation: rainFall 8s linear infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.3));
}

.tech-icon-detail:hover {
    color: rgba(102, 126, 234, 1);
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
}

/* Posiciones específicas para cada icono */
.tech-icon-detail[data-tech="react"] {
    top: -10%;
    left: 15%;
    animation-delay: 0s;
    color: rgba(97, 218, 251, 0.7);
}

.tech-icon-detail[data-tech="vue"] {
    top: -15%;
    left: 25%;
    animation-delay: 1s;
    color: rgba(65, 184, 131, 0.7);
}

.tech-icon-detail[data-tech="laravel"] {
    top: -20%;
    left: 35%;
    animation-delay: 2s;
    color: rgba(255, 45, 85, 0.7);
}

.tech-icon-detail[data-tech="angular"] {
    top: -12%;
    left: 45%;
    animation-delay: 3s;
    color: rgba(221, 0, 49, 0.7);
}

.tech-icon-detail[data-tech="nodejs"] {
    top: -18%;
    left: 55%;
    animation-delay: 4s;
    color: rgba(104, 159, 56, 0.7);
}

.tech-icon-detail[data-tech="python"] {
    top: -14%;
    left: 65%;
    animation-delay: 5s;
    color: rgba(55, 118, 171, 0.7);
}

.tech-icon-detail[data-tech="docker"] {
    top: -16%;
    left: 75%;
    animation-delay: 6s;
    color: rgba(13, 17, 23, 0.7);
}

.tech-icon-detail[data-tech="aws"] {
    top: -13%;
    left: 85%;
    animation-delay: 7s;
    color: rgba(255, 153, 0, 0.7);
}

.tech-icon-detail[data-tech="github"] {
    top: -17%;
    left: 5%;
    animation-delay: 2.5s;
    color: rgba(36, 41, 46, 0.7);
}

.tech-icon-detail[data-tech="database"] {
    top: -19%;
    left: 95%;
    animation-delay: 1.5s;
    color: rgba(51, 103, 145, 0.7);
}

/* Animación de lluvia */
@keyframes rainFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE CONTACTO ===== */

/* Contact Hero Section */
.contact-hero {
    background: #000000;
    color: white;
    text-align: center;
    padding: 120px 2rem 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.contact-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Contact Intro Section */
.contact-intro {
    background: #ffffff;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-intro .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-intro h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #000000;
}

.contact-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Methods Section */
.contact-methods {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 2rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.method-item {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.method-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.method-item:hover::before {
    left: 100%;
}

.method-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.method-item i {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.method-item:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.method-item h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.method-item:hover h3 {
    color: #667eea;
    transform: translateY(-2px);
}

.method-item p {
    color: #718096;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.method-item:hover p {
    color: #4a5568;
}

.method-item .contact-info {
    font-weight: bold;
    color: #000000;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.method-item:hover .contact-info {
    color: #667eea;
    transform: scale(1.05);
}

/* Efecto de borde brillante en hover */
.method-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-item:hover::after {
    opacity: 1;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.08), transparent);
    transition: left 0.8s ease;
}

.form-container:hover::before {
    left: 100%;
}

.form-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

.form-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #000000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-title:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.form-description {
    text-align: center;
    color: #666666;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.form-container:hover .form-description {
    color: #333333;
    transform: translateY(-2px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group:hover label {
    color: #667eea;
    transform: translateX(3px);
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.submit-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.submit-btn i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(20deg);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* Responsive para contacto */
@media (max-width: 1200px) {
    .contact-hero h1 {
        font-size: 3.5rem;
    }
    
    .contact-hero p {
        font-size: 1.3rem;
    }
    
    .contact-intro h2 {
        font-size: 2.8rem;
    }
    
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 2rem;
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.2rem;
    }
    
    .contact-intro h2 {
        font-size: 2.2rem;
    }
    
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .form-container {
        padding: 1.8rem;
        max-width: 500px;
        margin: 0 1rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .form-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .method-item {
        padding: 1.5rem;
    }
    
    .submit-btn {
        max-width: 250px;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-intro h2 {
        font-size: 1.8rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-description {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .method-item {
        padding: 1rem;
    }
    
    .submit-btn {
        max-width: 200px;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== FLOATING TECH ICONS PARA LA SECCIÓN "¿LISTO PARA COMENZAR?" ===== */

.floating-icons-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon-contact {
    position: absolute;
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.6);
    animation: rainFallContact 8s linear infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.3));
}

.tech-icon-contact:hover {
    color: rgba(102, 126, 234, 1);
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
}

/* Posiciones específicas para cada icono en contacto */
.tech-icon-contact[data-tech="react"] {
    top: -10%;
    left: 15%;
    animation-delay: 0s;
    color: rgba(97, 218, 251, 0.7);
}

.tech-icon-contact[data-tech="vue"] {
    top: -15%;
    left: 25%;
    animation-delay: 1s;
    color: rgba(65, 184, 131, 0.7);
}

.tech-icon-contact[data-tech="laravel"] {
    top: -20%;
    left: 35%;
    animation-delay: 2s;
    color: rgba(255, 45, 85, 0.7);
}

.tech-icon-contact[data-tech="angular"] {
    top: -12%;
    left: 45%;
    animation-delay: 3s;
    color: rgba(221, 0, 49, 0.7);
}

.tech-icon-contact[data-tech="nodejs"] {
    top: -18%;
    left: 55%;
    animation-delay: 4s;
    color: rgba(104, 159, 56, 0.7);
}

.tech-icon-contact[data-tech="python"] {
    top: -14%;
    left: 65%;
    animation-delay: 5s;
    color: rgba(55, 118, 171, 0.7);
}

.tech-icon-contact[data-tech="docker"] {
    top: -16%;
    left: 75%;
    animation-delay: 6s;
    color: rgba(13, 17, 23, 0.7);
}

.tech-icon-contact[data-tech="aws"] {
    top: -13%;
    left: 85%;
    animation-delay: 7s;
    color: rgba(255, 153, 0, 0.7);
}

.tech-icon-contact[data-tech="github"] {
    top: -17%;
    left: 5%;
    animation-delay: 2.5s;
    color: rgba(36, 41, 46, 0.7);
}

.tech-icon-contact[data-tech="database"] {
    top: -19%;
    left: 95%;
    animation-delay: 1.5s;
    color: rgba(51, 103, 145, 0.7);
}

/* Animación de lluvia específica para contacto */
@keyframes rainFallContact {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive para los íconos flotantes de contacto */
@media (max-width: 768px) {
    .tech-icon-contact {
        font-size: 1.5rem;
    }
    
    .tech-icon-contact[data-tech="react"] {
        top: -8%;
        left: 10%;
    }
    
    .tech-icon-contact[data-tech="vue"] {
        top: -12%;
        left: 20%;
    }
    
    .tech-icon-contact[data-tech="vue"] {
        top: -16%;
        left: 30%;
    }
    
    .tech-icon-contact[data-tech="angular"] {
        top: -10%;
        left: 40%;
    }
    
    .tech-icon-contact[data-tech="nodejs"] {
        top: -14%;
        left: 50%;
    }
    
    .tech-icon-contact[data-tech="python"] {
        top: -11%;
        left: 60%;
    }
    
    .tech-icon-contact[data-tech="docker"] {
        top: -13%;
        left: 70%;
    }
    
    .tech-icon-contact[data-tech="aws"] {
        top: -9%;
        left: 80%;
    }
    
    .tech-icon-contact[data-tech="github"] {
        top: -15%;
        left: 3%;
    }
    
    .tech-icon-contact[data-tech="database"] {
        top: -17%;
        left: 90%;
    }
}

@media (max-width: 480px) {
    .tech-icon-contact {
        font-size: 1.2rem;
    }
}

/* ===== ESTILOS SEO PARA PÁGINA PRINCIPAL ===== */

.services-highlight {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-highlight h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

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

.service-highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-highlight-item:hover {
    transform: translateY(-10px);
    border-color: #2563eb;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.service-highlight-item i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.service-highlight-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.service-highlight-item p {
    color: #64748b;
    line-height: 1.6;
}

.why-choose-us {
    padding: 4rem 0;
    background: white;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

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

.reason-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.reason-item:hover {
    transform: scale(1.05);
}

.reason-item i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.reason-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.reason-item p {
    color: #64748b;
    line-height: 1.6;
}

.cta-seo {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
}

.cta-seo h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-primary {
    background: #10b981;
    color: white;
    border: 2px solid #10b981;
}

.cta-buttons .btn-primary:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Responsive para secciones SEO */
@media (max-width: 768px) {
    .services-highlight h2,
    .why-choose-us h2,
    .cta-seo h2 {
        font-size: 2rem;
    }
    
    .services-highlight-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE PORTAFOLIO ===== */

/* Portfolio Hero Section */
.portfolio-hero {
    background: #000000;
    color: white;
    text-align: center;
    padding: 120px 2rem 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Floating Tech Icons para portafolio */
.portfolio-hero .floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.portfolio-hero .tech-icon {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.portfolio-hero .tech-icon:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.portfolio-hero .tech-icon[data-tech="angular"] {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: rgba(221, 0, 49, 0.8);
}

.portfolio-hero .tech-icon[data-tech="python"] {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    color: rgba(55, 118, 171, 0.8);
}

.portfolio-hero .tech-icon[data-tech="java"] {
    top: 45%;
    left: 8%;
    animation-delay: 2s;
    color: rgba(247, 202, 24, 0.8);
}

.portfolio-hero .tech-icon[data-tech="laravel"] {
    top: 35%;
    right: 8%;
    animation-delay: 3s;
    color: rgba(255, 45, 85, 0.8);
}

.portfolio-hero .tech-icon[data-tech="react"] {
    top: 65%;
    left: 12%;
    animation-delay: 4s;
    color: rgba(97, 218, 251, 0.8);
}

.portfolio-hero .tech-icon[data-tech="nodejs"] {
    top: 55%;
    right: 12%;
    animation-delay: 5s;
    color: rgba(104, 159, 56, 0.8);
}

.portfolio-hero .tech-icon[data-tech="vuejs"] {
    top: 75%;
    left: 20%;
    animation-delay: 1.5s;
    color: rgba(65, 184, 131, 0.8);
}

.portfolio-hero .tech-icon[data-tech="docker"] {
    top: 20%;
    left: 50%;
    animation-delay: 2.5s;
    color: rgba(13, 17, 23, 0.8);
}

.portfolio-hero .tech-icon[data-tech="aws"] {
    top: 60%;
    left: 50%;
    animation-delay: 3.5s;
    color: rgba(255, 153, 0, 0.8);
}

.portfolio-hero .tech-icon[data-tech="github"] {
    top: 40%;
    left: 50%;
    color: rgba(36, 41, 46, 0.8);
}

.portfolio-hero .tech-icon[data-tech="postgresql"] {
    top: 30%;
    left: 25%;
    animation-delay: 1.8s;
    color: rgba(51, 103, 145, 0.8);
}

.portfolio-hero .tech-icon[data-tech="mongodb"] {
    top: 70%;
    right: 25%;
    animation-delay: 2.2s;
    color: rgba(67, 153, 132, 0.8);
}

.portfolio-hero .tech-icon[data-tech="android"] {
    top: 50%;
    left: 35%;
    animation-delay: 2.8s;
    color: rgba(164, 198, 57, 0.8);
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 2;
}

.portfolio-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.portfolio-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Portfolio Intro Section */
.portfolio-intro {
    background: #ffffff;
    padding: 4rem 2rem;
}

.portfolio-intro .container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-intro h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #000000;
}

.portfolio-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Categories */
.portfolio-categories {
    background: #f8f9fa;
    padding: 3rem 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item i {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.category-item h3 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.category-item p {
    color: #666666;
    font-size: 0.9rem;
}

/* Portfolio Grid Styles */
.portfolio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 2rem;
}

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

.portfolio .section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: #000000;
    position: relative;
    font-weight: 700;
}

.portfolio .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.portfolio-video {
    width: 100%;
    height: 315px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    aspect-ratio: 16/9;
}

.portfolio-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
    filter: brightness(1);
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.portfolio-item:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-video iframe {
    filter: brightness(1.05);
    transform: scale(1.02);
}

/* Optimización para videos de alta calidad */
.portfolio-video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.portfolio-video iframe {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Mejora de calidad en pantallas de alta resolución */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-video iframe {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
    }
}

/* Optimización para evitar parpadeo de calidad inicial */
.portfolio-video {
    position: relative;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 20px 20px;
    animation: loading-shimmer 2s infinite;
}

.portfolio-video iframe {
    position: relative;
    z-index: 2;
    background: #000;
}

@keyframes loading-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Ocultar el shimmer cuando el video está cargado */
.portfolio-video.loaded {
    background: #000;
    animation: none;
}

.portfolio-content {
    padding: 2rem;
    position: relative;
}

.portfolio-content h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
    color: #667eea;
}

.portfolio-content p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.portfolio .tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio .tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio .tag:hover::before {
    left: 100%;
}

.portfolio .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Portfolio Item Overlay Effect */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* Portfolio Item Icon */
.portfolio-item .portfolio-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-icon {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item .portfolio-icon i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Portfolio Stats */
.portfolio-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 2rem;
}

.portfolio-stats .container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-stats .section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: #000000;
    position: relative;
    font-weight: 700;
}

.portfolio-stats .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 3;
}

.stat-item:hover .number {
    color: #667eea;
}

.stat-item .label {
    color: #666666;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    z-index: 3;
}

.stat-item:hover .label {
    color: #333333;
}

/* Stats Item Icon */
.stat-item .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 3;
}

.stat-item:hover .stat-icon {
    opacity: 1;
    transform: translateY(0);
}

.stat-item .stat-icon i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Responsive para portafolio */
@media (max-width: 1200px) {
    .portfolio-hero h1 {
        font-size: 3.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1.3rem;
    }
    
    .portfolio-intro h2 {
        font-size: 2.8rem;
    }
    
    .portfolio .section-title,
    .portfolio-stats .section-title {
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1.2rem;
    }
    
    .portfolio-intro h2 {
        font-size: 2.2rem;
    }
    
    .portfolio .section-title,
    .portfolio-stats .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-item {
        border-radius: 15px;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .stat-item .number {
        font-size: 3rem;
    }
    
    .category-item {
        padding: 1.5rem 1rem;
    }
    
    /* Responsive para el botón Volver al Inicio */
    .back-home-section {
        padding: 3rem 0;
    }
    
    .back-button {
        padding: 1rem 2.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-hero p {
        font-size: 1rem;
    }
    
    .portfolio-intro h2 {
        font-size: 1.8rem;
    }
    
    .portfolio .section-title,
    .portfolio-stats .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .portfolio,
    .portfolio-stats {
        padding: 3rem 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        border-radius: 12px;
    }
    
    .portfolio-content {
        padding: 1.2rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-tags {
        gap: 0.6rem;
    }
    
    .portfolio .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .stat-item .number {
        font-size: 2.8rem;
    }
    
    .stat-item .label {
        font-size: 1.1rem;
    }
    
    .category-item {
        padding: 1rem;
    }
    
    /* Extra small mobile floating icons */
    .portfolio-hero .tech-icon {
        font-size: 1.4rem !important;
    }
    
    /* Responsive para el botón Volver al Inicio */
    .back-home-section {
        padding: 2.5rem 0;
    }
    
    .back-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }
    
    .back-button i {
        font-size: 1rem;
    }
}

/* Estilos para el botón Volver al Inicio en contacto */
.back-home-section-contact {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
}

.back-home-section-contact .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
}

.back-home-section-contact .back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.back-home-section-contact .back-button:hover::before {
    left: 100%;
}

.back-home-section-contact .back-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.back-home-section-contact .back-button:active {
    transform: translateY(-2px) scale(1.02);
}

.back-home-section-contact .back-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.back-home-section-contact .back-button:hover i {
    transform: translateX(-5px) scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.back-home-section-contact .back-button span {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.back-home-section-contact .back-button:hover span {
    transform: translateX(2px);
}

/* Efecto de borde brillante en hover */
.back-home-section-contact .back-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-home-section-contact .back-button:hover::after {
    opacity: 1;
}

/* Estilos para el botón de envío del formulario */
.form-submit-container {
    text-align: center;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.btn-success:active {
    transform: translateY(-1px);
}

.btn-success i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-success:hover i {
    transform: translateX(3px);
}

/* Responsive para el botón Volver al Inicio en contacto */
@media (max-width: 768px) {
    .back-home-section-contact {
        padding: 2.5rem 1.5rem;
    }
    
    .back-home-section-contact .back-button {
        padding: 1rem 2.2rem;
        font-size: 1rem;
    }
    
    .btn-success {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .back-home-section-contact {
        padding: 2rem 1rem;
    }
    
    .back-home-section-contact .back-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }
    
    .back-home-section-contact .back-button i {
        font-size: 1rem;
    }
    
    .btn-success {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Estilos responsivos para el logo */
@media (max-width: 768px) {
    .logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 6px;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}
