:root {
    --color-fondo: #111111;
    --color-primario: #ffffff;
    --color-secundario: #a7a7a7;
    --color-acento: #007BFF;
    --color-acento-hover: #0056b3;
    --color-whatsapp: #25D366;
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--color-fondo); 
    color: var(--color-primario); 
    line-height: 1.7; 
    overflow-x: hidden; 
}

/* --- Preloader --- */
#preloader { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: var(--color-fondo); 
    z-index: 1000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.5s ease; 
}

.spinner { 
    width: 50px; 
    height: 50px; 
    border: 5px solid rgba(255, 255, 255, 0.2); 
    border-top-color: var(--color-acento); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* --- Estructura y Contenedor --- */
.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

/* --- Header --- */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem 0; 
    position: sticky; 
    top: 0; 
    background: rgba(17, 17, 17, 0.8); 
    backdrop-filter: blur(10px); 
    z-index: 100; 
}

.logo { 
    font-weight: 700; 
    font-size: 1.5rem; 
    text-decoration: none; 
    color: var(--color-primario); 
    display: flex; 
    align-items: center; 
    z-index: 101; 
}

.logo img { 
    height: 50px; 
    margin-right: 8px; 
}

.logo span { 
    color: var(--color-acento); 
}

.main-nav a { 
    color: var(--color-secundario); 
    text-decoration: none; 
    margin-left: 2rem; 
    font-weight: 600; 
    transition: color 0.3s ease; 
}

.main-nav a:hover, .main-nav a.active { 
    color: var(--color-primario); 
}

.cta-button { 
    background-color: var(--color-acento); 
    color: white; 
    padding: 0.6rem 1.2rem; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: background-color 0.3s ease; 
}

.cta-button:hover { 
    background-color: var(--color-acento-hover); 
}

/* --- Hero Section --- */
.hero { 
    padding: 8rem 0; 
    text-align: center; 
}

.hero h1 { 
    font-size: 4rem; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
}

.hero .highlight { 
    background: -webkit-linear-gradient(45deg, var(--color-acento), #00AFFF); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero p { 
    font-size: 1.1rem; 
    color: var(--color-secundario); 
    max-width: 650px; 
    margin: 0 auto 2.5rem; 
}

/* --- Services Section --- */
.services, .applications-page, .marketing-page, .blog-page { 
    padding: 5rem 0; 
}

.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 4rem; 
}

.section-subtitle { 
    text-align: center; 
    font-size: 1.1rem; 
    color: var(--color-secundario); 
    margin-top: -3rem; 
    margin-bottom: 4rem; 
}

.services-grid, .applications-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}

.service-card, .app-card { 
    background-color: #1a1a1a; 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid #2a2a2a; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.service-card { 
    cursor: pointer; 
}

.service-card:hover, .app-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 18px 35px rgba(0, 123, 255, 0.15); 
}

/* --- Estilos Unificados para TODOS los Contenedores de Íconos --- */
.service-card .icon, .app-card .app-icon {
    margin: 0 auto 1.5rem;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-acento);
}

/* --- Estilos Unificados para TODAS las Imágenes/SVG de Íconos --- */
.service-card .icon img, .app-icon svg, .app-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.service-card h3, .app-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: var(--color-primario); 
}

.service-card p, .app-card p { 
    color: var(--color-secundario); 
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
}

.app-card .app-cta { 
    display: inline-block; 
    background-color: var(--color-acento); 
    color: white; 
    padding: 0.7rem 1.5rem; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: background-color 0.3s ease; 
    margin-top: 1.5rem; 
}

.app-card .app-cta:hover { 
    background-color: var(--color-acento-hover); 
}

/* --- Animaciones --- */
.page-content { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.page-content.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.animated-section { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.animated-section.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- ESTILOS MARKETING --- */
.lead-magnet-container {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.lead-magnet-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.lead-magnet-card:hover {
    border-color: var(--color-acento);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
}

.lead-magnet-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.lead-magnet-subtitle {
    font-size: 1.1rem;
    color: var(--color-secundario);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.lead-magnet-form {
    text-align: left;
}

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

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

.form-select {
    width: 100%;
    padding: 1rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--color-primario);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.lead-magnet-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--color-acento), #0099ff);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.lead-magnet-btn:enabled:hover {
    background: linear-gradient(45deg, var(--color-acento-hover), #0077cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.lead-magnet-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ideas-result {
    margin-top: 3rem;
    text-align: left;
    animation: fadeInUp 0.5s ease-out;
}

.ideas-result h4 {
    font-size: 1.4rem;
    color: var(--color-primario);
    margin-bottom: 2rem;
    text-align: center;
}

.idea-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-acento);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.idea-content {
    flex: 1;
}

.idea-item h5 {
    font-size: 1.2rem;
    color: var(--color-acento);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.idea-item p {
    color: var(--color-secundario);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.idea-item .idea-platform {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.idea-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.idea-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.idea-image:hover {
    transform: scale(1.05);
}

.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-secundario);
    font-size: 0.9rem;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #444;
    border-top: 3px solid var(--color-acento);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

.image-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 0.5rem;
    color: #ccc;
    font-size: 0.7rem;
}

.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secundario);
    font-size: 0.9rem;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ESTILOS PERSONALIZADOR DE MARCA === */
.brand-personalizer-section {
    margin: 4rem 0;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-personalizer-header {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.brand-personalizer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.brand-personalizer-subtitle {
    font-size: 1.1rem;
    color: var(--color-secundario);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.expand-personalizer-btn {
    background: linear-gradient(45deg, var(--color-acento), #0099ff);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.expand-personalizer-btn:hover {
    background: linear-gradient(45deg, var(--color-acento-hover), #0077cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.expand-personalizer-btn.expanded .btn-arrow {
    transform: rotate(180deg);
}

.expandable-personalizer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.expandable-personalizer-content.expanded {
    max-height: 2000px;
}

.personalizer-container {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.personalization-form h4 {
    font-size: 1.5rem;
    color: var(--color-primario);
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.personalization-form .form-group {
    margin-bottom: 0;
}

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

.file-upload-container {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #2a2a2a;
    border: 2px dashed #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primario);
    font-weight: 600;
}

.file-upload-btn:hover {
    border-color: var(--color-acento);
    background-color: #333;
}

.upload-icon {
    font-size: 1.2rem;
}

.logo-preview {
    margin-top: 1rem;
    text-align: center;
}

.logo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid var(--color-acento);
}

.text-input {
    width: 100%;
    padding: 1rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--color-primario);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-preview {
    font-size: 1rem;
    color: var(--color-secundario);
    font-weight: 600;
}

.live-preview-section h4 {
    font-size: 1.5rem;
    color: var(--color-primario);
    margin-bottom: 2rem;
    font-weight: 600;
}

.preview-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.template-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
}

.template-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.template-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.user-logo {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
}

.brand-name {
    color: var(--color-primario);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.template-description {
    padding: 1rem;
    color: var(--color-secundario);
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* === ESTILOS PARA TEMPLATES PERSONALIZADOS === */

/* Template 1: Estilo Tecnológico */
.tech-template {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 123, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: techGridMove 20s linear infinite;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    animation: techParticle 15s linear infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 10s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-delay: 7s;
}

.tech-overlay {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.tech-logo {
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.tech-name {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.tech-subtitle {
    color: #007BFF;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Template 2: Estilo Profesional (Negro/Dorado) */
.professional-template {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.professional-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.luxury-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
}

.gold-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.05) 50%, transparent 70%);
}

.professional-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.professional-logo {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.professional-name {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Times New Roman', serif;
    font-weight: 700;
}

.professional-subtitle {
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Template 3: Estilo Fresco/Divertido */
.fresh-template {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    position: relative;
    overflow: hidden;
}

.fresh-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.colorful-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: freshFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.fresh-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fresh-logo {
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.fresh-name {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Comic Sans MS', cursive;
    font-weight: 700;
    font-size: 1.3rem;
}

.fresh-subtitle {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animaciones */
@keyframes techGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

@keyframes techParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(100px, -100px); opacity: 0; }
}

@keyframes freshFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.lead-capture {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
    text-align: center;
}

.lead-capture-text {
    font-size: 1.1rem;
    color: var(--color-primario);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--color-primario);
    font-size: 1rem;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.email-btn {
    background: linear-gradient(45deg, var(--color-acento), #0099ff);
    color: #000;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-btn:hover {
    background: linear-gradient(45deg, var(--color-acento-hover), #0077cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

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

.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 5rem; 
}

.feature-card { 
    background-color: #1a1a1a; 
    padding: 2rem; 
    border-radius: 12px; 
    border-left: 4px solid var(--color-acento); 
    display: flex; 
    flex-direction: column; 
}

.feature-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.75rem; 
    color: var(--color-primario); 
}

.feature-card p { 
    font-size: 1rem; 
    color: var(--color-secundario); 
    line-height: 1.6; 
    flex-grow: 1; 
}

/* --- ESTILOS PLANES --- */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem; 
    align-items: stretch; 
}

.pricing-card { 
    background-color: #1a1a1a; 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid #2a2a2a; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    position: relative; 
    overflow: hidden; 
}

.pricing-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 18px 35px rgba(0, 123, 255, 0.15); 
}

.pricing-card.recommended { 
    border-color: var(--color-acento); 
    border-width: 2px; 
}

.recommend-badge { 
    position: absolute; 
    top: 1.5rem; 
    right: -55px; 
    transform: rotate(45deg); 
    background-color: var(--color-acento); 
    color: var(--color-primario); 
    padding: 0.5rem 4rem; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-align: center; 
}

.pricing-card h3 { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
}

.pricing-card .plan-description { 
    color: var(--color-secundario); 
    font-size: 0.95rem; 
    margin-bottom: 2rem; 
    min-height: 40px; 
}

.price-container { 
    margin-bottom: 2rem; 
}

.price-main { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--color-primario); 
}

.price-main span { 
    font-size: 1rem; 
    font-weight: 400; 
    color: var(--color-secundario); 
}

.price-secondary { 
    font-size: 1rem; 
    color: var(--color-secundario); 
    margin-top: 0.5rem; 
}

.features-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    flex-grow: 1; 
}

.features-list li { 
    display: flex; 
    align-items: center; 
    margin-bottom: 1rem; 
    color: var(--color-secundario); 
}

.features-list li svg { 
    width: 20px; 
    height: 20px; 
    margin-right: 1rem; 
    color: var(--color-acento); 
    flex-shrink: 0; 
}

.pricing-card .cta-button { 
    width: 100%; 
    text-align: center; 
    margin-top: 2rem; 
    background-color: var(--color-fondo); 
    border: 1px solid var(--color-acento); 
    color: var(--color-acento); 
}

.pricing-card .cta-button:hover { 
    background-color: var(--color-acento); 
    color: var(--color-primario); 
}

.pricing-card.recommended .cta-button { 
    background-color: var(--color-acento); 
    color: var(--color-primario); 
}

.pricing-card.recommended .cta-button:hover { 
    background-color: var(--color-acento-hover); 
}

/* --- ESTILOS BLOG MEJORADOS --- */
.blog-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
}

.blog-post-card { 
    background-color: #1a1a1a; 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid #2a2a2a; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative;
    overflow: hidden;
}

.blog-post-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 18px 35px rgba(0, 123, 255, 0.15); 
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

.blog-post-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    color: var(--color-primario); 
    line-height: 1.3;
}

.blog-post-card p { 
    color: var(--color-secundario); 
    margin-bottom: 1.5rem; 
}

.blog-post-card .post-meta { 
    font-size: 0.9rem; 
    color: #888; 
    margin-bottom: 1rem; 
    font-weight: 500;
}

.blog-post-card .read-more { 
    color: var(--color-acento); 
    text-decoration: none; 
    font-weight: 600; 
}

.blog-post-card .read-more:hover { 
    text-decoration: underline; 
}

.post-summary {
    margin-bottom: 1.5rem;
}

/* Estilos para imágenes del blog */
.post-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #333;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
}

.post-image.loaded {
    opacity: 1;
}

.post-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--color-acento), #00AFFF);
    opacity: 0.1;
    z-index: 1;
}

.post-image-container:hover::before {
    opacity: 0.2;
}

/* Botón expandible mejorado */
.read-more-btn {
    background: linear-gradient(45deg, var(--color-acento), #0099ff);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    background: linear-gradient(45deg, var(--color-acento-hover), #0077cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.read-more-btn .btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.read-more-btn.expanded {
    background: linear-gradient(45deg, #666, #888);
}

.read-more-btn.expanded:hover {
    background: linear-gradient(45deg, #777, #999);
}

/* Animación para contenido expandido */
.post-full-content {
    animation: fadeIn 0.3s ease-out;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.post-source {
    animation: fadeIn 0.3s ease-out 0.1s both;
}

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

#posts-container { 
    min-height: 300px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

/* --- Menú Móvil --- */
.hamburger-menu { 
    display: none; 
    width: 30px; 
    height: 22px; 
    flex-direction: column; 
    justify-content: space-between; 
    cursor: pointer; 
    z-index: 101; 
}

.hamburger-menu .bar { 
    width: 100%; 
    height: 3px; 
    background-color: var(--color-primario); 
    border-radius: 2px; 
    transition: all 0.3s ease; 
}

.mobile-nav { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 70%; 
    max-width: 300px; 
    height: 100vh; 
    background-color: #1a1a1a; 
    border-left: 1px solid #2a2a2a; 
    z-index: 99; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    transition: right 0.4s ease-in-out; 
}

.mobile-nav.open { 
    right: 0; 
}

.mobile-nav a { 
    color: var(--color-secundario); 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin: 1.5rem 0; 
    transition: color 0.3s ease; 
}

.mobile-nav a:hover, .mobile-nav a.active { 
    color: var(--color-primario); 
}

/* --- Footer --- */
.footer { 
    text-align: center; 
    padding: 4rem 0 2rem; 
    margin-top: 4rem; 
    border-top: 1px solid #2a2a2a; 
}

.social-links { 
    margin: 1.5rem 0; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.social-links a { 
    text-decoration: none; 
    display: inline-block; 
    transition: transform 0.3s ease; 
}

.social-links a:hover { 
    transform: scale(1.1); 
}

.social-links img { 
    width: 45px; 
    height: 45px; 
    vertical-align: middle; 
    border-radius: 50%; 
    object-fit: cover; 
}

.whatsapp-button { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 60px; 
    height: 60px; 
    z-index: 99; 
}

.whatsapp-button img { 
    width: 100%; 
    height: 100%; 
    transition: transform 0.3s ease; 
}

.whatsapp-button:hover img { 
    transform: scale(1.1); 
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pricing-grid { 
        grid-template-columns: 1fr; 
    }
    .main-nav, .header .cta-button { 
        display: none; 
    }
    .hamburger-menu { 
        display: flex; 
    }
    .hero { 
        padding: 4rem 0; 
    }
    .hero h1 { 
        font-size: 2.8rem; 
    }
    .hero p { 
        font-size: 1rem; 
    }
    .section-title { 
        font-size: 2rem; 
        margin-bottom: 2.5rem; 
    }
    .services-grid, .applications-grid, .kpi-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    .service-card, .app-card, .blog-post-card { 
        padding: 2rem; 
    }
    .whatsapp-button { 
        width: 50px; 
        height: 50px; 
        bottom: 20px; 
        right: 20px; 
    }
    .logo img { 
        height: 40px; 
        margin-right: 10px; 
    }
    .social-links img { 
        width: 35px; 
        height: 35px; 
    }
    
    /* Responsive para Lead Magnet */
    .lead-magnet-container {
        margin: 2rem 0;
    }
    
    .lead-magnet-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .lead-magnet-title {
        font-size: 1.5rem;
    }
    
    .lead-magnet-subtitle {
        font-size: 1rem;
    }
    
    .email-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .email-btn {
        width: 100%;
    }
    
    /* Responsive para imágenes de ideas */
    .idea-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .idea-image-container {
        width: 100%;
        height: 200px;
        order: -1;
    }
    
    /* Responsive para Personalizador de Marca */
    .brand-personalizer-header {
        padding: 2rem;
    }
    
    .brand-personalizer-title {
        font-size: 1.5rem;
    }
    
    .brand-personalizer-subtitle {
        font-size: 1rem;
    }
    
    .personalizer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .preview-templates {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .template-image {
        height: 250px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
}

#contact-page .cta-button { 
    margin-top: 2.5rem; 
}

/* === ESTILOS PARA VIDEOS EN CARRUSEL === */
.video-slide {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
}

.video-slide video:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* === CONTENEDOR DE VIDEO ESTÁTICO === */
.video-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
}

.video-container video:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* === RESPONSIVE PARA VIDEO CONTAINER === */
@media (max-width: 768px) {
    .video-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .video-container {
        height: 280px;
    }
}

/* Removido el indicador de play personalizado para no interferir con los controles nativos del video */

/* === CONTENEDORES DE DETALLES === */
#fulldo-details-container, 
#medical-system-details-container, 
#budget-creator-details-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, margin-top 0.7s ease-in-out;
}

#fulldo-details-container.open, 
#medical-system-details-container.open, 
#budget-creator-details-container.open {
    max-height: 2000px;
    margin-top: 0;
}

.app-details-content {
    background-color: #1a1a1a;
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

#fulldo-details-container.open .app-details-content,
#medical-system-details-container.open .app-details-content,
#budget-creator-details-container.open .app-details-content {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE PARA VIDEOS === */
@media (max-width: 768px) {
    .video-slide {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .video-slide {
        height: 280px;
    }
}

/* === NUEVOS ESTILOS PARA APLICACIONES MARKETPLACE === */
.applications-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

.applications-header .section-subtitle {
    color: var(--color-secundario);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.applications-marketplace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.app-listing {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-listing:hover {
    transform: translateY(-5px);
    border-color: var(--color-acento);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
}

.app-listing.featured {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a00 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.app-category-badge {
    display: inline-block;
    background: var(--color-acento);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.app-title-section h3 {
    color: var(--color-primario);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.app-description {
    color: var(--color-secundario);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.app-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #0f0f0f;
    border-radius: 12px;
    border: 1px solid #333;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    color: var(--color-secundario);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    display: block;
    color: var(--color-acento);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--color-acento);
    color: #000;
}

.btn-primary:hover {
    background: #0099ff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primario);
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #333;
    border-color: var(--color-acento);
}

.applications-cta {
    text-align: center;
    background: #1a1a1a;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    margin-top: 2rem;
}

.applications-cta h3 {
    color: var(--color-primario);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.applications-cta p {
    color: var(--color-secundario);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === RESPONSIVE PARA APLICACIONES === */
@media (max-width: 768px) {
    .applications-marketplace {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-listing {
        padding: 1.5rem;
        /* Optimización para móvil */
        transform: none;
        will-change: auto;
    }

    .app-listing:hover {
        transform: none;
        box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
    }

    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .app-icon {
        align-self: center;
    }

    .app-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        flex: none;
    }

    /* Optimización de fuentes para móvil */
    .app-title-section h3 {
        font-size: 1.2rem;
    }

    .app-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .applications-page {
        padding: 2rem 0;
    }

    .applications-header {
        margin-bottom: 2rem;
    }

    .app-listing {
        padding: 1rem;
    }

    .featured-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}
