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

:root {
    --color-cyan: #22d3ee;
    --color-blue: #2563eb;
    --color-purple: #7c3aed;
    --color-slate: #0f172a;
    --color-slate-light: #1e293b;
    --color-gray: #94a3b8;
    --color-green: #10b981;
    --color-orange: #f59e0b;
    --color-pink: #ec4899;
    --color-indigo: #6366f1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #4c1d95, #0f172a);
    color: white;
    overflow-x: hidden;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-cyan);
}

.nav-link-cta {
    background: linear-gradient(to right, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link-cta:hover {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.05);
}

.nav-button {
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
    transform: scale(1.05);
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-cyan);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 10rem;
    }
}

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

.hero-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.badge i {
    color: var(--color-cyan);
}

.badge span {
    color: var(--color-cyan);
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.primary-button {
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.primary-button:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
    transform: scale(1.05);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-cyan);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.divider {
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Image */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, rgba(37, 99, 235, 0.2) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    border-radius: 1.5rem;
    opacity: 0.7;
}

.image-container {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-container:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover .image-placeholder img {
    transform: scale(1.05);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(37, 99, 235, 0.3));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Section Styles */
.section {
    padding: 5rem 1rem;
}

.section-dark {
    background: rgba(0, 0, 0, 0.2);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tool-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--color-cyan);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.2);
}

.tool-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.75rem;
    color: white;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.tool-description {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tool-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray);
    font-size: 0.875rem;
}

.tool-features i {
    color: var(--color-green);
    font-size: 0.75rem;
}

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--color-purple), var(--color-pink));
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.tool-button:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
}

/* Header Sections for individual pages */
.ia-header, .cuentos-header-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: linear-gradient(135deg, #1a237e, #311b92, #0d47a1);
    position: relative;
    overflow: hidden;
}

.ia-header-container, .cuentos-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ia-header-container, .cuentos-header-container {
        grid-template-columns: 2fr 1fr;
    }
}

.ia-header-content, .cuentos-header-content {
    text-align: left;
}

.ia-main-title, .cuentos-main-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .ia-main-title, .cuentos-main-title {
        font-size: 3.5rem;
    }
}

.ia-header-description, .cuentos-header-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.ia-header-buttons, .cuentos-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ia-header-buttons, .cuentos-header-buttons {
        flex-direction: row;
    }
}

.ia-header-image, .cuentos-header-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-header-image i, .cuentos-header-image i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

/* Footer */
footer {
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo i {
    font-size: 1.25rem;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-description {
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 400px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-cyan);
}

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