:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --secondary: #f57c00;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --success: #4caf50;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Archivo', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: static;
    top: 0;
    z-index: 100;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.carreras-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.carrera-boton {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.carrera-boton:hover,
.carrera-boton.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

.main-contenido {
    padding: 50px 0;
    flex: 1;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.2rem;
    position: relative;
}

.seccion-titulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto;
    border-radius: 2px;
}

.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.boton-filtro {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.boton-filtro:hover,

.boton-filtro.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
}

.grilla-herramientas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tarjeta-herramienta {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta-herramienta:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tarjeta-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tarjeta-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tarjeta-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.tarjeta-titulo {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.tarjeta-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tarjeta-categoria {
    display: inline-block;
    background: rgba(245, 124, 0, 0.1);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.tarjeta-desc {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tarjeta-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton-visitar {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.boton-visitar:hover {
    background: var(--primary-light);
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: #e0e0e0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.tag.free {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.tag.premium {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.tag.nuevo {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.contador {
    text-align: center;
    margin: 30px 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.contador span {
    font-weight: 700;
    color: var(--secondary);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
footer {
  background-color: #1a237e;
  padding: 2rem;
  padding-top: 3rem;
  font-size: 0.95rem;
  color: #f5f5f5;
  border-top: 4px solid #f57c00;
}

.footer-contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-info {
  flex: 1 1 40%;
}

.footer-texto {
  font-weight: 400;
  margin: 0;
}

.footer-links-col {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links {
  text-decoration: none;
  color: #f5f5f5;
  transition: color 0.2s ease;
}

.footer-links:hover {
  color: #f57c00;
}

.copyright-content {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #888;
  padding-top: 1rem;
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carrera-boton {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .grilla-herramientas {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .tarjeta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tags {
        width: 100%;
        flex-wrap: wrap;
    }
}