/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores Grises Profesionales - Acogedor para PYMES */
    --primary-color: #5A6C7D;
    --secondary-color: #E07A5F;
    --accent-color: #8FA1B3;
    --success-color: #52B788;
    --text-dark: #212529;
    --text-light: #6C757D;
    --text-muted: #ADB5BD;
    --bg-light: #F8F9FA;
    --bg-card: #ffffff;
    --border-color: #DEE2E6;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #5A6C7D 0%, #3D4A56 100%);
    --gradient-accent: linear-gradient(135deg, #E07A5F 0%, #D16850 100%);
    --shadow-sm: 0 1px 3px 0 rgba(90, 108, 125, 0.1), 0 1px 2px 0 rgba(90, 108, 125, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(90, 108, 125, 0.1), 0 2px 4px -1px rgba(90, 108, 125, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(90, 108, 125, 0.1), 0 4px 6px -2px rgba(90, 108, 125, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(90, 108, 125, 0.1), 0 10px 10px -5px rgba(90, 108, 125, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(90, 108, 125, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f7fafc 0%, #edf2f7 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--gradient-primary);
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__profile {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-2xl);
    object-fit: cover;
    animation: fadeInScale 0.8s ease-out;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 2.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero__description {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero__social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    padding: 6rem 0 4rem;
    text-align: center;
}

.header__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.header__subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    padding: 0 0 6rem 0;
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    animation: fadeIn 1s ease-out;
}

/* ========================================
   PROJECT CARD
   ======================================== */
.project-card {
    background: var(--bg-card);
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    animation: slideUp 0.6s ease-out backwards;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.project-card--featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.project-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 10;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }
.project-card:nth-child(7) { animation-delay: 0.4s; }
.project-card:nth-child(8) { animation-delay: 0.45s; }
.project-card:nth-child(9) { animation-delay: 0.5s; }
.project-card:nth-child(10) { animation-delay: 0.55s; }
.project-card:nth-child(11) { animation-delay: 0.6s; }
.project-card:nth-child(12) { animation-delay: 0.65s; }
.project-card:nth-child(13) { animation-delay: 0.7s; }
.project-card:nth-child(14) { animation-delay: 0.75s; }
.project-card:nth-child(15) { animation-delay: 0.8s; }

.project-card__image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card__image {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transition: var(--transition);
}

.project-card__category {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.project-card__badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.project-card__badge i {
    animation: pulse 2s ease-in-out infinite;
}

.project-card__content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.project-card__description {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex: 1;
}

/* ========================================
   TAGS
   ======================================== */
.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: var(--text-dark);
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.4rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 1rem;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn--external {
    position: relative;
    overflow: hidden;
}

.btn--external::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.5s ease;
}

.btn--external:hover::before {
    left: 100%;
}

.btn--cta {
    padding: 1.6rem 4rem;
    font-size: 1.7rem;
    border-radius: 1.2rem;
}

.btn--whatsapp {
    background: linear-gradient(135deg, #E07A5F 0%, #C86850 100%);
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.4);
    color: var(--white);
    font-weight: 700;
}

.btn--whatsapp:hover {
    background: linear-gradient(135deg, #C86850 0%, #B05640 100%);
    box-shadow: 0 6px 25px rgba(224, 122, 95, 0.6);
    transform: translateY(-2px);
}

.btn--secondary {
    background: linear-gradient(135deg, #5A6C7D 0%, #485665 100%);
    box-shadow: 0 4px 15px rgba(90, 108, 125, 0.4);
    color: var(--white);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn--secondary:hover {
    background: linear-gradient(135deg, #485665 0%, #3A4451 100%);
    box-shadow: 0 6px 25px rgba(90, 108, 125, 0.6);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   CALL TO ACTION SECTION
   ======================================== */
.cta {
    background: var(--gradient-primary);
    border-radius: 2rem;
    margin: 8rem 0 6rem;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.cta__container {
    position: relative;
    z-index: 1;
}

.cta__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta__subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4rem;
}

.cta__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cta__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 600;
}

.cta__feature i {
    color: #10b981;
    font-size: 2rem;
}

.cta__price {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 1.6rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-xl);
}

.cta__price-label {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta__price-amount {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.cta__price-note {
    display: block;
    font-size: 1.4rem;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.cta__price-description {
    font-size: 1.6rem;
    color: var(--text-light);
}

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta__testimonial {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.cta__testimonial i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
}

.cta__decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta__circle--1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.cta__circle--2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.cta__circle--3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    padding: 6rem 0 2rem;
    margin-top: 6rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__section {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer__heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
    position: relative;
    padding-bottom: 1rem;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer__description {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__list li:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer__list li i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    text-align: center;
}

.footer__copyright {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .projects {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .hero {
        padding: 6rem 0 8rem;
    }

    .hero__title {
        font-size: 3.6rem;
    }

    .hero__subtitle {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1.6rem;
    }

    .hero__avatar {
        width: 120px;
        height: 120px;
    }

    .header__title {
        font-size: 3.2rem;
    }

    .header__subtitle {
        font-size: 1.6rem;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card__title {
        font-size: 2rem;
    }

    .cta {
        padding: 4rem 2rem;
        margin: 6rem 0 4rem;
    }

    .cta__title {
        font-size: 3rem;
    }

    .cta__subtitle {
        font-size: 1.7rem;
    }

    .cta__features {
        grid-template-columns: 1fr;
    }

    .cta__price-amount {
        font-size: 4.5rem;
    }

    .cta__buttons {
        flex-direction: column;
    }

    .cta__buttons .btn {
        width: 100%;
    }

    /* Footer 2x2 en tablet */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem 2.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .hero {
        padding: 5rem 0 6rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__social {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .header {
        padding: 4rem 0 3rem;
    }

    .main {
        padding: 0 0 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .project-card__image-wrapper {
        height: 180px;
    }

    .cta__title {
        font-size: 2.5rem;
    }

    .cta__features {
        gap: 1.5rem;
    }

    .cta__price {
        padding: 2rem;
    }

    .cta__price-amount {
        font-size: 4rem;
    }

    /* Footer 2x2 en móvil */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .footer__heading {
        font-size: 1.6rem;
    }

    .footer__list li {
        font-size: 1.3rem;
    }

    .footer__description {
        font-size: 1.3rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .hero,
    .cta,
    .footer__social {
        display: none;
    }
    
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   INTERACTIVE EFFECTS
   ======================================== */

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Button Hover Effect Enhancement */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading State */
body.loaded {
    animation: fadeIn 0.3s ease-in;
}

/* Smooth Page Load - Initial State */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* CTA Visible State */
.cta--visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Image loading placeholder */
img:not([src]) {
    background: linear-gradient(
        90deg,
        var(--gray-100) 0%,
        var(--gray-200) 50%,
        var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading spinner for buttons */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--white);
    font-size: 3.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0) rotate(-180deg);
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
    animation: bounceIn 0.6s ease-out;
}

.whatsapp-float:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.whatsapp-float i {
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Responsive - MÓVIL */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 65px;
        height: 65px;
        font-size: 3.2rem;
        bottom: 25px;
        right: 25px;
        border: 3px solid rgba(255, 255, 255, 0.4);
        /* FORZAR VISIBILIDAD EN MÓVIL */
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) rotate(0deg) !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
        width: 65px;
        height: 65px;
        font-size: 3.2rem;
    }
}

/* ========================================
   FLECHA DE SCROLL ANIMADA
   ======================================== */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-arrow a:hover {
    opacity: 1;
}

.scroll-arrow i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   BOTÓN VER MÁS PROYECTOS
   ======================================== */
.projects__toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin-top: 6rem;
    margin-bottom: 4rem;
    padding: 0;
}

.btn--toggle {
    background: linear-gradient(135deg, #E07A5F 0%, #C86850 100%);
    color: var(--white);
    padding: 1.6rem 4rem;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(224, 122, 95, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--toggle:hover {
    background: linear-gradient(135deg, #C86850 0%, #B05640 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(224, 122, 95, 0.6);
}

.btn--toggle:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.4);
}

.btn--toggle i {
    font-size: 1.6rem;
    transition: var(--transition);
}

.btn--toggle.active i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .btn--toggle {
        padding: 1.4rem 3rem;
        font-size: 1.2rem;
    }
    
    .btn--toggle i {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .btn--toggle {
        padding: 1.5rem 3.5rem;
        font-size: 1.3rem;
    }
}

/* Ocultar proyectos inicialmente - MOSTRAR SOLO 6 */
.project-card {
    display: none;
}

.project-card:nth-child(-n+6) {
    display: block;
}

.project-card.show {
    display: block;
}

