* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFE4EC 0%, #FFF0F5 50%, #FCE4EC 100%);
    color: #2E2E2E;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Principal */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(216, 27, 96, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D81B60;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2E2E2E;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: #FFF0F5;
    color: #D81B60;
}

.nav-link.active {
    background: #D81B60;
    color: white;
}

/* Contenido Principal */
.main-content {
    flex: 1;
    padding: 40px 20px;
}

.meme-generator {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(216, 27, 96, 0.1);
    padding: 40px;
}

/* Header del Generador */
.generator-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #F06292;
    padding-bottom: 30px;
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.generator-header h1 {
    color: #D81B60;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #757575;
    font-size: 1.1rem;
}

/* Secciones */
.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #D81B60;
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: #757575;
    font-size: 0.95rem;
}

/* Vista Previa */
.meme-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.meme-preview {
    position: relative;
    max-width: 500px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #F8BBD9;
    background: #FFF8F8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meme-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-text, .bottom-text {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0px 2px 0 #000,
        2px 0px 0 #000,
        0px -2px 0 #000,
        -2px 0px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Impact', 'Charcoal', sans-serif;
    word-wrap: break-word;
    line-height: 1.2;
    margin: 0;
}

/* Controles */
.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-weight: 600;
    color: #D81B60;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-hint {
    font-size: 0.85rem;
    color: #757575;
    margin-top: 5px;
}

.text-input, .file-input, .select-input {
    padding: 12px 15px;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus, .select-input:focus {
    outline: none;
    border-color: #D81B60;
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.1);
}

.file-input {
    cursor: pointer;
}

/* Opciones de texto */
.text-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #F8F9FA;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    font-weight: 600;
    color: #2E2E2E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E9ECEF;
    outline: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D81B60;
    cursor: pointer;
}

.color-input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* Botón de descarga */
.download-section {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #D81B60, #F06292);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 27, 96, 0.4);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-hint {
    color: #757575;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Footer */
.ciuri-footer {
    background: #2E2E2E;
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column p {
    color: #cbd5e0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.footer-column a:hover {
    color: #F06292;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #F06292;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .meme-generator {
        padding: 25px 20px;
    }
    
    .generator-header h1 {
        font-size: 1.8rem;
    }
    
    .app-icon {
        font-size: 3rem;
    }
    
    .text-options {
        grid-template-columns: 1fr;
    }
    
    .top-text, .bottom-text {
        font-size: 28px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .meme-generator {
        padding: 20px 15px;
    }
    
    .generator-header h1 {
        font-size: 1.6rem;
    }
    
    .top-text, .bottom-text {
        font-size: 24px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
    }
}