/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ededed;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TIPOGRAFÍA Y COLORES ========== */
h1,
h2,
h3,
h4,
.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e63946;
    margin: 1rem auto 0;
    border-radius: 4px;
}

.section-title {
    margin-bottom: 3rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: #e63946;
    color: white;
    box-shadow: 0 6px 14px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e63946;
    color: #e63946;
}

.btn-outline:hover {
    background: #e63946;
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== HEADER ========== */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(230, 57, 70, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.7rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, #e63946);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 0.75rem;
    color: #e63946;
    display: block;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #e63946;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ========== HERO (mejorado) ========== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBmaWxsPSIjMjIyIiBkPSJNMjAgMjBhMjAgMjAgMCAwIDEgMjAgMjAgMjAgMjAgMCAwIDEtNDAgMCAyMCAyMCAwIDAgMSAyMC0yMHoiLz48L3N2Zz4=');
    background-repeat: repeat;
    opacity: 0.95;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.7), #0a0a0a);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    background: rgba(230, 57, 70, 0.15);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #e63946;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #e63946;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-icons {
    display: flex;
    gap: 2rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(230, 57, 70, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-icons i {
    font-size: 4rem;
    color: #e63946;
    transition: transform 0.3s;
}

.floating-icons i:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========== SOBRE MÍ ========== */
.about {
    padding: 100px 0;
    background: #0f0f0f;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-card {
    background: #121212;
    padding: 2.5rem 1.8rem;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s;
    border-bottom: 3px solid transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #e63946;
    background: #181818;
}

.about-card i {
    font-size: 2.8rem;
    color: #e63946;
    margin-bottom: 1.2rem;
}

.about-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

/* ========== SERVICIOS ========== */
.services {
    padding: 100px 0;
    background: linear-gradient(145deg, #0a0a0a 0%, #111 100%);
}

.services-category {
    margin-bottom: 4rem;
}

.services-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e63946;
    border-left: 4px solid #e63946;
    padding-left: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(2px);
    padding: 2rem;
    border-radius: 28px;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #e63946;
    box-shadow: 0 20px 30px -12px rgba(230, 57, 70, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: #e63946;
    margin-bottom: 1.2rem;
}

.btn-service-request {
    background: none;
    border: 1.5px solid #e63946;
    color: #e63946;
    padding: 8px 20px;
    border-radius: 40px;
    margin-top: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.btn-service-request:hover {
    background: #e63946;
    color: white;
    transform: scale(1.02);
}

/* ========== PORTAFOLIO ========== */
.portfolio {
    background: #0f0f0f;
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #121212;
    padding: 2rem;
    border-radius: 28px;
    transition: 0.25s;
    text-align: center;
    border: 1px solid #222;
}

.portfolio-item:hover {
    border-color: #e63946;
    transform: translateY(-5px);
}

.portfolio-item i {
    font-size: 2.5rem;
    color: #e63946;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background: #e63946;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-top: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ========== BLOG ========== */
.blog {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #121212;
    padding: 2rem;
    border-radius: 28px;
    transition: 0.3s;
    border: 1px solid #222;
}

.blog-card:hover {
    border-color: #e63946;
    transform: translateY(-5px);
}

.blog-card i {
    font-size: 2rem;
    color: #e63946;
    margin-bottom: 1rem;
}

.read-more {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* ========== TESTIMONIOS ========== */
.testimonials {
    background: #0f0f0f;
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #121212;
    padding: 2rem;
    border-radius: 28px;
    position: relative;
    transition: 0.2s;
}

.testimonial-card i {
    color: #e63946;
    font-size: 1.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* ========== CONTACTO ========== */
.contact {
    padding: 100px 0;
    background: linear-gradient(145deg, #0a0a0a, #0c0c0c);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    background: #111;
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid #2a2a2a;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.8rem;
    transition: 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.contact-form {
    flex: 1;
    background: #111;
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid #2a2a2a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ddd;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 20px;
    color: white;
    font-family: inherit;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-feedback {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ========== FOOTER & WHATSAPP ========== */
.footer {
    background: #050505;
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid #222;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

.social-links a {
    color: #aaa;
    font-size: 1.4rem;
    transition: 0.2s;
}

.social-links a:hover {
    color: #e63946;
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    h2 {
        font-size: 2rem;
    }

    .floating-icons {
        padding: 1rem;
    }

    .floating-icons i {
        font-size: 2.5rem;
    }
}