/* Reset y Variables */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --circle-color: rgba(255, 255, 255, 0.25);
    --line-color: rgba(255, 255, 255, 0.15);
    --sphere-color: #072f6a;
    --border-color: #072f6a;
    --accent-color: #4fc3f7;
    --secondary-bg: #1a1a2e;
    --hover-color: rgba(79, 195, 247, 0.1);
    --gradient-primary: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #4fc3f7, #29b6f6);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Header fijo arriba */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background: linear-gradient(to right, white, black);
    border-bottom: 2px solid var(--border-color);
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer NO fijo - al final de la página */
footer {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, black, white);
    border-top: 2px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    display: block;
    overflow: visible;
}

/* Estilos específicos para el contenido del footer */
footer .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

footer .footer-section {
    text-align: left;
}

footer .footer-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-section li {
    margin-bottom: 0.5rem;
}

footer .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-section a:hover {
    color: var(--accent-color);
}

footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

footer .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

footer .footer-bottom p {
    margin: 0;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

footer .footer-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Bandera de Colombia para footer */
.flag-icon-co {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj4KICA8cmVjdCB3aWR0aD0iOTAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0iI2ZjZGQwOSIvPgogIDxyZWN0IHdpZHRoPSI5MDAiIGhlaWdodD0iMzAwIiB5PSIzMDAiIGZpbGw9IiMwMDM4OGEiLz4KICA8cmVjdCB3aWR0aD0iOTAwIiBoZWlnaHQ9IjE1MCIgeT0iNDUwIiBmaWxsPSIjZGEwMjFmIi8+Cjwvc3ZnPg==");
}

/* Estilos para las banderas en el footer */
footer .flag-icon {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    width: 1.2em;
    height: 0.8em;
    margin-right: 0.5em;
    vertical-align: middle;
}

footer .flag-icon:before {
    content: "\00a0";
}

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: calc(100vh - 240px);
}

#main-content {
    padding-top: 100px;
    padding-bottom: 140px;
    min-height: calc(100vh - 240px);
}

/* Páginas específicas */
.home-page,
.contact-page,
.tools-page {
    padding-top: 30px;
    padding-bottom: 30px;
    min-height: calc(100vh - 120px);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-accent {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark-bg);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-accent {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
}

.tools-grid-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.tool-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tool-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.tool-preview:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
}

.tool-preview i {
    font-size: 3rem;
    color: var(--accent-color);
}

.tool-preview span {
    font-weight: 600;
    color: white;
}

/* Secciones de Herramientas */
.tools-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Herramientas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.tool-card:hover .tool-icon {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgb(79, 194, 247);
}

.tool-icon {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid rgba(79, 195, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
    font-size: 3rem;
    color: white;
}

.tool-icon:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.tool-icon i {
    font-size: 5rem;
    color: white;
}

.tool-icon span {
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

.tool-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tool-status {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Sección de Contacto */
.contact-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-content>p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 40px;
}

.contact-item h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Formulario de Contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* === MENU HAMBURGUESA RESPONSIVE === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--sphere-color);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú responsive - ESPACIOS CORRECTOS */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 90%;
        max-width: 300px;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        width: 100%;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin: 0.2rem 0;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-color);
    }

    .main-website-btn {
        margin: 1rem auto;
        padding: 0.8rem 1.5rem;
        background: var(--accent-color);
        color: white !important;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: inline-block;
        font-weight: 500;
    }

    .main-website-btn:hover {
        background: #ff6b35;
        transform: translateY(-2px);
    }

    .lang-switcher {
        margin: 1rem 0 0.5rem 0;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .lang-switch {
        padding: 0.4rem 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .lang-switch.active,
    .lang-switch:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
    }
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group label {
    display: block !important;
    position: static !important;
    margin-bottom: 0.5rem !important;
    font-weight: bold;
    color: #fff !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.01em;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
}

/* Eliminar estilos de label flotante */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    /* Resetear todos los estilos flotantes */
    top: auto !important;
    left: auto !important;
    font-size: 1.1rem !important;
    color: #fff !important;
    background: transparent !important;
    padding: 0 !important;
    position: static !important;
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

/* === FORMULARIO DE CONTACTO === */
.contact-page {
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 800px;
}

.contact-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #b0b8c9;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(10, 18, 32, 0.98);
    border-radius: 22px;
    border: 3px solid var(--sphere-color);
    box-shadow: 0 6px 24px 0 rgba(7, 47, 106, 0.10), 0 1.5px 6px 0 rgba(7, 47, 106, 0.08);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    position: relative;
}

.form-group label {
    display: block !important;
    position: static !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600;
    color: #fff !important;
    font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
    letter-spacing: 0.01em;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    border: 2.5px solid var(--sphere-color);
    border-radius: 12px;
    background-color: #181f2a;
    color: #fff;
    font-size: clamp(0.9rem, 2vw, 1.08rem);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 1px 4px rgba(7, 47, 106, 0.06);
    box-sizing: border-box;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
}

.form-group select option {
    background-color: #181f2a;
    color: #fff;
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
    transform: translateY(-1px);
}

.phone-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

.phone-group .country-select {
    flex: 0 0 200px;
    min-width: 200px;
}

.phone-group input[type="tel"] {
    flex: 1;
    min-width: 0;
}

/* Responsive para phone-group */
@media (max-width: 768px) {
    .phone-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .phone-group .country-select {
        flex: none;
        min-width: 100%;
        width: 100%;
    }

    .phone-group input[type="tel"] {
        flex: none;
        width: 100%;
    }
}

/* HONEYPOT FIELD (campo oculto anti-spam) - CRÍTICO */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: transparent !important;
    pointer-events: none !important;
}

.submit-btn {
    background: linear-gradient(135deg, var(--sphere-color), #4fc3f7);
    color: white;
    padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.5rem, 4vw, 2.5rem);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    min-height: clamp(50px, 8vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-btn:hover:before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4fc3f7, var(--sphere-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design Original */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        flex: 1;
        min-width: auto;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tools-grid-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-preview:nth-child(3) {
        grid-column: 1;
        max-width: none;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-modal {
        margin: 20px;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
        min-height: 60vh;
    }

    .tools-section,
    .contact-section {
        padding: 2rem 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        padding: 12px 16px;
    }
}

/* Responsive para footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem 1rem;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    footer .footer-section {
        text-align: center;
    }

    footer .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    footer .footer-section a {
        font-size: 0.85rem;
    }

    footer .footer-bottom p {
        font-size: 0.8rem;
    }

    footer .footer-note {
        font-size: 0.8rem;
    }
}

/* === PÁGINA DE INICIO === */
.home-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text-color), var(--sphere-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

/* Responsive para categories-grid */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--sphere-color);
    box-shadow: 0 20px 40px rgba(7, 47, 106, 0.3);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-card h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--sphere-color);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.about-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 35px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--sphere-color), #4fc3f7);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(7, 47, 106, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 47, 106, 0.4);
    color: white;
    text-decoration: none;
}

/* === ANIMACIONES PARA FORMULARIO === */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 195, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0);
    }
}

/* Aplicar animaciones */
.contact-form-container {
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.submit-btn {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    animation: pulse 1s ease-out;
}

/* === MEJORAS DE ACCESIBILIDAD === */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid rgba(79, 195, 247, 0.5);
    outline-offset: 2px;
}

/* Mejoras para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estados de loading mejorados */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    animation: none !important;
}

.submit-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* === OPTIMIZACIONES PARA RENDIMIENTO === */
.contact-form-container,
.form-group,
.submit-btn {
    will-change: transform, opacity;
}

/* Reducir animaciones en dispositivos con preferencia por movimiento reducido */
@media (prefers-reduced-motion: reduce) {

    .contact-form-container,
    .form-group,
    .submit-btn {
        animation: none !important;
        transition: none !important;
    }

    .form-group input.error {
        animation: none !important;
    }
}

/* === OPTIMIZACIONES ESPECÍFICAS PARA TOUCH === */
@media (hover: none) and (pointer: coarse) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        /* Tamaño mínimo recomendado para touch */
    }

    .submit-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    /* Mejorar el área de toque para elementos pequeños */
    .char-counter {
        padding: 0.5rem 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out;
}

.tool-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tool-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Estados de carga */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


[data-theme="dark"] header {
    background: linear-gradient(to right, white, black);
    border-bottom: 2px solid var(--border-color);
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] footer {
    background: linear-gradient(to right, black, rgba(255, 255, 255, 0.507), black);
    border-top: 2px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Iconos de redes sociales */
.icon-linkedin,
.icon-github {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.icon-linkedin {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>');
}

.icon-github {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>');
}

[data-theme="dark"] .icon-linkedin,
[data-theme="dark"] .icon-github {
    filter: invert(1);
}

[data-theme="dark"] .icon-linkedin:hover,
[data-theme="dark"] .icon-github:hover {
    filter: invert(1) sepia(1) hue-rotate(180deg) saturate(2);
}

/* Estilos de validación y mensajes del formulario */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #b0b8c9;
    opacity: 1;
}

/* ESTILOS PARA VALIDACIÓN DE FORMULARIO */
.field-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 0;
    display: block;
    transition: all 0.2s ease;
}

.field-error:empty {
    margin-top: 0;
    min-height: 0;
    height: 0;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #2ed573;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.2);
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #b0b8c9;
    margin-top: 0.3rem;
}

.char-counter.warning {
    color: #ffa502;
}

.char-counter.danger {
    color: #ff4757;
}

/* ESTILOS PARA MENSAJES DEL FORMULARIO */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    color: #2ed573;
}

.form-message.error {
    background-color: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.form-message.info {
    background-color: rgba(79, 195, 247, 0.1);
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
}

/* ESTILOS PARA LOADING DEL BOTÓN */
.submit-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === RESPONSIVE SIMPLE PARA FORMULARIO DE CONTACTO === */
@media (max-width: 768px) {
    .contact-form-container {
        max-width: 95%;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        max-width: 95%;
        padding: 1rem;
        margin: 0 auto;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .contact-form-container {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
        box-shadow: none !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    .submit-btn {
        display: none !important;
    }

    .form-message {
        display: none !important;
    }
}

/* === IMPORT DE ESTILOS DE HERRAMIENTAS === */
@import url('tools/tools.css');

/* === MEJORAS PARA ICONOS DE HERRAMIENTAS === */
.tool-icon i {
    font-size: 3rem !important;
    color: white;
}

.tool-icon span {
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

/* === MEJORAS PARA GRID DE HERRAMIENTAS === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* === MEJORAS PARA NAVEGACIÓN === */
.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Estilos para herramientas - Bismma Software */

/* Buscador de herramientas */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 2rem auto;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.2);
}

.search-container input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Filtros de herramientas */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
}

/* Botones de herramientas */
.tool-btn {
    background: var(--gradient-accent);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
    margin-top: 1rem;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
    text-decoration: none;
    color: var(--bg-color);
}

.tool-btn:active {
    transform: translateY(-1px);
}

/* Botón de volver */
.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.btn-back:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-back i {
    font-size: 1.1rem;
}

/* Header de herramienta */
.tool-header {
    margin-bottom: 2rem;
}

.tool-header-info {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tool-header-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tool-header-info p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Status de herramientas */
.tool-status.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.tool-status.beta {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.3);
}

.tool-status.beta span::before {
    content: "🧪 ";
}

.tool-status.coming-soon span::before {
    content: "🚧 ";
}

/* Estilos para editor de código */
.tool-interface {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.editor-toolbar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.btn-tool span {
    font-size: 1rem;
}

.toolbar-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-container {
    background: var(--bg-color);
    min-height: 400px;
}

.editor-container textarea {
    width: 100%;
    min-height: 400px;
    background: transparent;
    color: var(--text-color);
    border: none;
    outline: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 1rem;
    resize: vertical;
    tab-size: 2;
}

.editor-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.editor-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.editor-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

/* Responsive para editor */
@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-tool {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .toolbar-info {
        justify-content: center;
        text-align: center;
    }

    .editor-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .editor-stats {
        justify-content: center;
    }

    .editor-actions {
        justify-content: center;
    }

    .controls-row {
        grid-template-columns: 1fr;
    }

    .editor-options {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tool-header-info h2 {
        font-size: 1.5rem;
    }

    .tool-header-info p {
        font-size: 1rem;
    }

    .btn-tool {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }

    .editor-container textarea {
        font-size: 12px;
        min-height: 300px;
    }

    .search-container input[type="text"] {
        font-size: 1rem;
        padding: 12px 40px 12px 16px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .tool-icon span {
        font-size: 2rem;
    }
}

/* Temas para el editor de código */
.theme-dark {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
}

.theme-monokai {
    background: #272822 !important;
    color: #f8f8f2 !important;
}

.theme-solarized {
    background: #002b36 !important;
    color: #839496 !important;
}

/* Números de línea */
.show-line-numbers {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 50px, transparent 50px);
    padding-left: 60px !important;
}

/* Mejoras visuales para el editor */
.editor-container textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

/* Scrollbar personalizada para el editor */
.editor-container textarea::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.editor-container textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.editor-container textarea::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 6px;
}

.editor-container textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.8);
}