:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --gradient: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    --shadow-sm: 0 2px 4px rgba(124, 58, 237, 0.1);
    --shadow-md: 0 4px 6px rgba(124, 58, 237, 0.15);
    --shadow-lg: 0 8px 24px rgba(124, 58, 237, 0.15);
}

* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #fafafa;
    color: #1F2937;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Encabezado */
.main-header {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sección del Generador */
.text-generator {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.input-section {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    resize: vertical;
    font-family: inherit;
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    outline: none;
}

/* Barra de Iconos */
.icons-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
    justify-content: center;
}

.icon-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Controles */
.controls {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #F3F4F6;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sección de Resultados */
.results-section {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.result-item {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-text {
    flex: 1;
}

.style-name {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.copy-btn {
    background: white;
    border: 2px solid #E5E7EB;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
    min-width: 100px;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.copy-btn.copied {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

/* Botón de Más Estilos */
.more-styles-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.result-text p {
    font-size: 1.1rem;
    word-break: break-word;
}

/* Sección de Pasos */
.how-to {
    margin: 4rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Tarjetas de Redes Sociales */
.social-networks {
    margin: 4rem 0;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.social-card li {
    margin-bottom: 0.5rem;
}

/* Sección de Preguntas Frecuentes */
.faq {
    margin: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Pie de Página */
.main-footer {
    background: white;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid #E5E7EB;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
}

/* Diseño Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-header {
        padding: 3rem 0;
    }

    .main-title {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
    }

    .result-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .copy-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
}