/* ================================
   RESET Y CONFIGURACIÓN GENERAL
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    line-height: 1.6;
    color: #33281E;
    background-color: #E8E2D6;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIQ+AAAAC3RSTlMBBQMEAAAAAQIAAAA3z44AAABsSURBVHja7c1BCoAwDANRY9NqrVb79L73P6cSKBTFQDZd5S2HL7xcQkREDMAk0DmsjE6TTIP+/KjHlKpqKKpkHvRlR+00C4wiUiZRM1v+wGwv9WY7zfLi5HTKEdoTAICW5cGCDAULMhIs+OUBeJQF95MhnY8AAAAASUVORK5CYII=');
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ================================
   SECCIÓN HERO
   ================================ */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 30px;
    background: linear-gradient(135deg, #F5F1E6, #EBE5D8);
    border: 6px solid #B87E45;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 15px;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #B87E45;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
    z-index: 10;
}

.hero-section::before {
    top: 15px;
    left: 15px;
}

.hero-section::after {
    top: 15px;
    right: 15px;
}

.main-title {
    font-family: 'Special Elite', cursive;
    font-size: 4em;
    color: #8B5C34;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    letter-spacing: 3px;
}

.main-subtitle {
    font-family: 'Courier Prime', monospace;
    font-size: 1.4em;
    color: #33281E;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   DEMO MORSE INTERACTIVO
   ================================ */
.morse-demo-container {
    margin: 30px 0;
    transition: opacity 0.3s ease;
}

.demo-text {
    font-family: 'Special Elite', cursive;
    font-size: 2.8em;
    color: #8B5C34;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    background: linear-gradient(135deg, #F5F1E6, #EBE5D8);
    border: 3px solid #B87E45;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.morse-demo {
    font-family: 'Courier Prime', monospace;
    font-size: 2.2em;
    color: #B87E45;
    letter-spacing: 6px;
    margin: 0;
    padding: 20px;
    background: #FFFFFF;
    border: 3px solid #B87E45;
    border-radius: 8px;
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* Estilos para caracteres individuales */
.text-char {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.morse-char {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.morse-symbol {
    display: inline;
}

.morse-space {
    display: inline;
    color: rgba(139, 92, 52, 0.3);
}

.morse-separator {
    display: inline;
    color: rgba(139, 92, 52, 0.5);
    font-weight: bold;
}

.text-space {
    display: inline;
    width: 0.5em;
}

/* Estados de resaltado para sincronización */
.text-char.highlight {
    color: #6B8E23 !important;
    background-color: #E8F5E8 !important;
    transform: scale(1.1) !important;
}

.morse-char.highlight {
    color: #6B8E23 !important;
    background-color: #E8F5E8 !important;
    transform: scale(1.05) !important;
}

/* Botones del demo */
.demo-button {
    background: #B87E45;
    color: #FFF8EA;
    border: 3px solid #8B5C34;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Special Elite', cursive;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin: 10px;
}

.demo-button:hover {
    background: #A06934;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ================================
   SECCIÓN INTRODUCCIÓN
   ================================ */
.intro-section {
    background: #F5F1E6;
    border: 6px solid #B87E45;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.intro-section::before,
.intro-section::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #B87E45;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

.intro-section::before {
    top: 10px;
    left: 10px;
}

.intro-section::after {
    top: 10px;
    right: 10px;
}

.section-title {
    font-family: 'Special Elite', cursive;
    font-size: 2.2em;
    color: #8B5C34;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #B87E45;
    padding-bottom: 15px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.intro-card {
    background: #EBE5D8;
    border: 4px solid #B87E45;
    padding: 25px;
    border-radius: 10px;
    position: relative;
}

.intro-card::before,
.intro-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #B87E45;
    border-radius: 50%;
}

.intro-card::before {
    top: 8px;
    left: 8px;
}

.intro-card::after {
    top: 8px;
    right: 8px;
}

.card-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
    color: #8B5C34;
}

.card-title {
    font-family: 'Special Elite', cursive;
    color: #8B5C34;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.card-text {
    color: #33281E;
    text-align: justify;
    line-height: 1.7;
}

/* ================================
   SECCIÓN HERRAMIENTAS
   ================================ */
.tools-section {
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tool-card {
    background: #F5F1E6;
    border: 6px solid #B87E45;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    cursor: pointer;
}

.tool-card::before,
.tool-card::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #B87E45;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

.tool-card::before {
    top: 8px;
    left: 8px;
}

.tool-card::after {
    top: 8px;
    right: 8px;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    border-color: #8B5C34;
}

.tool-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #8B5C34;
    display: block;
}

.tool-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.4em;
    color: #8B5C34;
    margin-bottom: 15px;
}

.tool-description {
    color: #33281E;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    font-size: 13px;
    color: #8B5C34;
    font-style: italic;
    margin-bottom: 20px;
}

.tool-button {
    background: #B87E45;
    color: #FFF8EA;
    border: 2px solid #8B5C34;
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.tool-button:hover {
    background: #A06934;
    transform: translateY(-2px);
    text-decoration: none;
    color: #FFF8EA;
}

/* Tarjetas especiales */
.tool-card.featured {
    border-color: #C25B45;
    background: linear-gradient(135deg, #F5F1E6, #FFE5E5);
}

.tool-card.kids {
    border-color: #6B9B76;
    background: linear-gradient(135deg, #F5F1E6, #E8F5E8);
}

.tool-card.pro {
    border-color: #8B5C34;
    background: linear-gradient(135deg, #F5F1E6, #F0E6D2);
}

/* ================================
   SECCIÓN FAQ
   ================================ */
.faq-section {
    background: #F5F1E6;
    border: 6px solid #B87E45;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
}

.faq-section::before,
.faq-section::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #B87E45;
    border-radius: 50%;
}

.faq-section::before {
    top: 8px;
    left: 8px;
}

.faq-section::after {
    top: 8px;
    right: 8px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: #EBE5D8;
    border: 3px solid #B87E45;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #D3C7B8;
    padding: 15px 20px;
    font-family: 'Special Elite', cursive;
    color: #8B5C34;
    cursor: pointer;
    border-bottom: 2px solid #B87E45;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #C7B8A3;
}

.faq-answer {
    padding: 20px;
    color: #33281E;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* ================================
   SECCIÓN ESTADÍSTICAS
   ================================ */
.stats-section {
    background: #EBE5D8;
    border: 4px solid #B87E45;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: #F5F1E6;
    border: 3px solid #B87E45;
    padding: 20px;
    border-radius: 8px;
}

.stat-number {
    font-family: 'Special Elite', cursive;
    font-size: 2.5em;
    color: #8B5C34;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: #33281E;
    font-weight: bold;
}

/* ================================
   SECCIÓN CTA
   ================================ */
.cta-section {
    background: linear-gradient(135deg, #B87E45, #8B5C34);
    color: #FFF8EA;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-title {
    font-family: 'Special Elite', cursive;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    background: #FFF8EA;
    color: #8B5C34;
    border: 3px solid #FFF8EA;
    padding: 15px 30px;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.cta-button:hover {
    background: transparent;
    color: #FFF8EA;
    transform: translateY(-3px);
    text-decoration: none;
}

/* ================================
   FOOTER
   ================================ */
.footer-section {
    background: #D3C7B8;
    border: 4px solid #B87E45;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    color: #33281E;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #8B5C34;
    text-decoration: none;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .container {
        padding-top: 10px;
        padding-bottom: 0px;
    }
    
    .main-title {
        font-size: 2.8em;
    }
    
    .demo-text {
        font-size: 2em;
        letter-spacing: 2px;
        padding: 12px;
    }
    
    .morse-demo {
        font-size: 1.6em;
        letter-spacing: 4px;
        padding: 15px;
    }
    
    .text-char {
        padding: 1px 2px;
    }
    
    .morse-char {
        padding: 1px 2px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

