/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente para emojis - compatibilidad cross-browser */
.memory-game, .card-face, .card-back, .btn-restart, .game-message {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --accent-orange: #f97316;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 25%, #fce7f3 50%, #e0f2fe 75%, #ffffff 100%);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

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

.logo h1 {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 6rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-weight: 400;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.hero-checklist > li {
    padding: 1rem 0;
    padding-left: 3rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    position: relative;
    font-weight: 500;
    line-height: 1.8;
    transition: transform 0.3s ease;
}

.hero-checklist > li:hover {
    transform: translateX(5px);
}

.hero-checklist > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--gradient-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-checklist > li::after {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1;
}

/* Sublista debajo de Neuroarte */
.hero-subchecklist {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0 0;
}

.hero-subchecklist li {
    padding: 0.6rem 0;
    padding-left: 2.5rem;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    font-weight: 400;
    line-height: 1.6;
}

.hero-subchecklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--gradient-teal);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.hero-subchecklist li::after {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}

.hero-image {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02) translateY(-5px);
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-blue);
    color: var(--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);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

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

/* Services Section */
.services {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--light-blue), transparent);
}

.section-title {
    font-size: 3rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.services-intro {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.intro-text {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper para las últimas dos tarjetas centradas */
.services-last-row-wrapper {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 400px);
    gap: 2.5rem;
    justify-content: center;
    margin-top: 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    width: 100%;
    max-width: 400px;
    justify-self: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.service-content {
    padding: 2.5rem;
}

.service-content h3 {
    font-size: 1.6rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.6rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.service-list li:hover {
    transform: translateX(5px);
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.services-footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-blue);
    position: relative;
}

.services-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-blue);
}

.organization-name {
    font-size: 1.4rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Sabías que Section */
.sabias-que {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.sabias-que-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.sabias-que-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

.sabias-que-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.sabias-que-card:hover::before {
    transform: scaleX(1);
}

.sabias-que-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.sabias-que-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    position: relative;
}

.sabias-que-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sabias-que-card:hover .sabias-que-image::after {
    opacity: 1;
}

.sabias-que-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sabias-que-card:hover .sabias-que-image img {
    transform: none;
}

.sabias-que-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sabias-que-content h3 {
    font-size: 1.8rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sabias-que-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sabias-que-text {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
    flex: 1;
}

/* About Section */
.about {
    padding: 7rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

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

.feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.feature h4 {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Contact Section */
.contact {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info h3 {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    padding: 1.5rem;
    background: rgba(219, 234, 254, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(219, 234, 254, 0.8);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item strong {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-item p {
    color: var(--text-dark);
    margin: 0;
    font-size: 1rem;
}

.whatsapp-button-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

.calendly-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.calendly-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.calendly-container h3 {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calendly-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.calendly-inline-widget {
    width: 100%;
    min-height: 700px;
    border-radius: 15px;
    overflow: hidden;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 4rem 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services {
        padding: 4rem 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0;
    }

    .services-last-row-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .service-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .service-card-last-row:nth-last-child(2),
    .service-card-last-row:last-child {
        grid-column: 1;
        justify-self: center;
        margin-left: 0;
        margin-right: 0;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

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

    .calendly-container {
        padding: 2rem 1.5rem;
    }

    .calendly-container h3 {
        font-size: 1.6rem;
    }

    .calendly-inline-widget {
        min-height: 600px;
    }

    .sabias-que-grid {
        grid-template-columns: 1fr;
    }

    .hero::before,
    .hero::after {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimización de rendimiento */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.service-card,
.sabias-que-card,
.memory-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==================== */
/* MEMORY GAME INLINE   */
/* ==================== */

.memory-game-inline {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    border-radius: 16px;
    text-align: center;
}

.memory-game-inline h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-intro-small {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.game-stats-small {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-small {
    background: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 80px;
}

.stat-small .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.stat-small .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.game-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.memory-card {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    animation: matchPulse 0.5s ease;
}

@keyframes matchPulse {
    0%, 100% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: var(--gradient-blue);
    color: var(--white);
    transform: rotateY(180deg);
}

.card-back {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-size: 2rem;
}

.card-back::before {
    content: "🧠";
    font-size: 2.5rem;
}

.btn-restart {
    display: block;
    margin: 0 auto 1.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.game-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-teal);
    min-height: 2rem;
}

.game-message.success {
    animation: celebrateText 0.5s ease;
}

@keyframes celebrateText {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(30px);
    }
    50% {
        transform: rotate(180deg) translateX(-30px);
    }
    75% {
        transform: rotate(270deg) translateX(20px);
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* Memory Game Responsive */
@media (max-width: 600px) {
    .memory-game {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        max-width: 320px;
    }
    
    .card-face {
        font-size: 1.8rem;
    }
    
    .card-back::before {
        font-size: 1.8rem;
    }
    
    .game-stats {
        gap: 1rem;
    }
    
    .stat {
        padding: 0.8rem 1.2rem;
        min-width: 90px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    will-change: transform;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
