/* Estilos para la web pública - Diseño elegante, moderno y profesional */

:root {
    --primary: #0010ef;
    --primary-dark: #0008a0;
    --primary-light: #4a5eff;
    --primary-lighter: #7c8aff;
    --secondary: #1a1a2e;
    --accent: #0f3460;
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 30px 60px -12px rgba(0, 16, 239, 0.25);
    --gradient-primary: linear-gradient(135deg, #0010ef 0%, #4a5eff 50%, #7c8aff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    --gradient-light: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    --gradient-hero: linear-gradient(135deg, #0010ef 0%, #4a5eff 50%, #7c8aff 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Top Bar - Contacto e idiomas */
.top-bar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    width: 100%;
    margin: 0;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
}

.top-bar-link:hover {
    color: white;
}

.top-bar-icon {
    font-size: 14px;
    opacity: 0.8;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-languages {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.top-bar-lang-link {
    padding: 6px 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar-lang-link:hover,
.top-bar-lang-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Header Público - Elegante y minimalista con glassmorphism */
.public-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body {
    padding-top: 0;
}

.public-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 380px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gradient-light);
}

.nav-link:hover::before {
    width: calc(100% - 24px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.lang-link {
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-link:hover,
.lang-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.auth-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.auth-buttons.mobile {
    display: none;
}

.auth-buttons.desktop {
    display: flex;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section - Impactante y elegante con animaciones */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 140px 24px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-circle 20s ease-in-out infinite;
}

@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, 100px) scale(1.2);
    }
}

.hero-container {
    width: 100%;
    margin: 0;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 48px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
}

.floating-pet {
    position: absolute;
    font-size: 140px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.floating-pet:hover {
    transform: scale(1.1) rotate(5deg);
}

.floating-pet:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-pet:nth-child(2) {
    top: 45%;
    right: 10%;
    animation-delay: -2s;
}

.floating-pet:nth-child(3) {
    bottom: 5%;
    left: 45%;
    animation-delay: -4s;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(3deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-3deg);
    }
}

/* Stats Section - Elegante con efectos hover */
.stats-section {
    background: var(--bg-primary);
    padding: 100px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 48px 24px;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Features Section - Profesional con cards mejoradas */
.features-section {
    padding: 140px 24px;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    width: 100%;
    padding: 0 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0;
    padding: 0 80px;
}

.feature-card {
    padding: 48px 36px;
    background: var(--bg-primary);
    border-radius: 24px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 16, 239, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 28px;
    display: inline-block;
    filter: drop-shadow(0 6px 12px rgba(0, 16, 239, 0.2));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* Blog Preview - Mejorado */
.blog-preview-section {
    padding: 140px 24px;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.blog-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-image::after {
    opacity: 0.1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.15);
}

.blog-content {
    padding: 36px;
}

.blog-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow);
}

.blog-content h3 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.blog-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.blog-meta {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CTA Section - Mejorado */
.cta-section {
    background: var(--gradient-dark);
    color: white;
    padding: 140px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 16, 239, 0.2) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 94, 255, 0.15) 0%, transparent 70%);
    animation: pulse 12s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.cta-content {
    width: 100%;
    margin: 0;
    padding: 0 80px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
    line-height: 1.8;
}

/* Footer - Mejorado */
.public-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 24px 32px;
    position: relative;
}

.public-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-container {
    width: 100%;
    margin: 0;
    padding: 0 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 16, 239, 0.2));
}

.footer-description {
    line-height: 1.8;
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Buttons - Elegantes con efectos mejorados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    line-height: 1;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 16, 239, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 16, 239, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 14px;
}

/* Page Styles */
.page-header {
    text-align: center;
    padding: 100px 80px 80px;
    background: var(--gradient-light);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 16, 239, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(74, 94, 255, 0.05) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    width: 100%;
    margin: 0;
    padding: 0 80px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding: 60px 80px;
    width: 100%;
}

.blog-card-large {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.blog-card-large:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.blog-card-large .blog-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-card-large .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-large:hover .blog-image img {
    transform: scale(1.1);
}

.blog-card-large .blog-content {
    padding: 48px;
}

.blog-card-large h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-card-large h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-large h2 a:hover {
    color: var(--primary);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.sidebar-widget h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-form input {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
}

.category-list a:hover,
.category-list a.active {
    color: var(--primary);
    background: var(--gradient-light);
    font-weight: 600;
    transform: translateX(4px);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    font-weight: 500;
}

.tag:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Glossary */
.glossary-filters {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin-bottom: 48px;
    border: 2px solid var(--border);
    margin: 60px 80px;
}

.filter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    flex: 1;
    min-width: 200px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-form input:focus,
.filter-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.letter-link {
    padding: 12px 18px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid var(--border);
    min-width: 44px;
    text-align: center;
}

.letter-link:hover,
.letter-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding: 0 80px 60px 80px;
}

.glossary-card {
    background: var(--bg-primary);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.glossary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.glossary-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.glossary-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.glossary-card h3 a:hover {
    color: var(--primary);
}

.term-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-sm);
}

/* FAQ */

.faq-page {
    width: 100%;
    min-height: 100vh;
}

.faq-header-section {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 80px 80px;
    text-align: center;
    color: white;
}

.faq-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-header-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 24px;
    color: white;
    letter-spacing: -1px;
}

.faq-header-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.featured-faqs-section {
    width: 100%;
    padding: 80px 80px;
    background: var(--bg-secondary);
}

.featured-faqs-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 48px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.featured-faqs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.featured-faq-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.featured-faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.featured-faq-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.featured-faq-card:hover::before {
    transform: scaleX(1);
}

.featured-faq-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.featured-faq-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.featured-faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.faq-filters-section {
    width: 100%;
    padding: 60px 80px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.faq-filters-content {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-filter-form {
    width: 100%;
}

.filter-input-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search {
    flex: 1;
    min-width: 300px;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.filter-select {
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.filter-category {
    min-width: 220px;
    padding: 16px 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-category:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.filter-clear {
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-clear:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.filter-btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-empty-section {
    width: 100%;
    padding: 120px 80px;
    text-align: center;
}

.faq-empty-content {
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.faq-empty-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.faq-empty-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-accordion-section {
    width: 100%;
    padding: 80px 80px 120px;
    background: var(--bg-primary);
}

.faq-accordion-content {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-item.active .faq-question {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.faq-question h3 {
    margin: 0;
    flex: 1;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.4;
    padding-right: 24px;
}

.faq-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 16, 239, 0.08);
}

.faq-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 40px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 40px 32px;
}

.faq-answer-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 17px;
    padding-top: 8px;
}

.faq-answer-content p {
    margin: 0 0 16px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Encyclopedia */
/* Encyclopedia */

.encyclopedia-page {
    width: 100%;
    min-height: 100vh;
}

.encyclopedia-header-section {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 80px 80px;
    text-align: center;
    color: white;
}

.encyclopedia-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.encyclopedia-header-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 24px;
    color: white;
    letter-spacing: -1px;
}

.encyclopedia-header-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.featured-species-section {
    width: 100%;
    padding: 80px 80px;
    background: var(--bg-secondary);
}

.featured-species-content {
    max-width: 1400px;
    margin: 0 auto;
}

.featured-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.featured-species-card {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}

.featured-species-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.featured-species-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.featured-species-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-species-card:hover .featured-species-image::after {
    opacity: 0.15;
}

.featured-species-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-species-card:hover .featured-species-image img {
    transform: scale(1.1);
}

.featured-species-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.featured-species-placeholder span {
    font-size: 80px;
    opacity: 0.3;
}

.featured-species-info {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-species-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.featured-species-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-species-info h3 a:hover {
    color: var(--primary);
}

.featured-scientific-name {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 15px;
    margin: 0 0 16px;
}

.featured-species-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 20px;
    flex: 1;
}

.featured-species-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.featured-species-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.featured-species-link span {
    transition: transform 0.3s ease;
}

.featured-species-link:hover span {
    transform: translateX(4px);
}

.encyclopedia-filters-section {
    width: 100%;
    padding: 60px 80px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.encyclopedia-filters-content {
    max-width: 1400px;
    margin: 0 auto;
}

.encyclopedia-filter-form {
    width: 100%;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.encyclopedia-empty-section {
    width: 100%;
    padding: 120px 80px;
    text-align: center;
}

.encyclopedia-empty-content {
    max-width: 600px;
    margin: 0 auto;
}

.species-list-section {
    width: 100%;
    padding: 80px 80px 120px;
    background: var(--bg-primary);
}

.species-list-content {
    max-width: 1400px;
    margin: 0 auto;
}

.species-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.species-card-large {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 420px 1fr;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.species-card-large:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.species-card-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.species-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.species-card-large:hover .species-card-image::after {
    opacity: 0.1;
}

.species-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.species-card-large:hover .species-card-image img {
    transform: scale(1.08);
}

.species-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.species-card-placeholder span {
    font-size: 120px;
    opacity: 0.3;
}

.species-card-content {
    padding: 56px;
    display: flex;
    flex-direction: column;
}

.species-card-content h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.species-card-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.species-card-content h2 a:hover {
    color: var(--primary);
}

.scientific-name {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 18px;
    margin: 0 0 24px;
}

.species-card-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 17px;
    margin: 0 0 28px;
    flex: 1;
}

.species-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.species-card-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.species-card-link span {
    transition: transform 0.3s ease;
}

.species-card-link:hover span {
    transform: translateX(4px);
}

/* Categorías en enciclopedia */
.encyclopedia-categories-section {
    width: 100%;
    background: var(--bg-primary);
}

.encyclopedia-category-section {
    width: 100%;
    padding: 80px 80px;
    border-bottom: 1px solid var(--border);
}

.encyclopedia-category-section:last-child {
    border-bottom: none;
    padding-bottom: 120px;
}

.encyclopedia-category-content {
    max-width: 1400px;
    margin: 0 auto;
}

.category-section-header {
    margin-bottom: 48px;
}

.category-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-section-icon {
    font-size: 36px;
    line-height: 1;
}

.category-section-title h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    flex: 1;
}

.category-count {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.species-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.species-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.species-card .species-card-image {
    width: 100%;
    height: 240px;
    min-height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.species-card .species-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.species-card:hover .species-card-image::after {
    opacity: 0.1;
}

.species-card .species-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.species-card:hover .species-card-image img {
    transform: scale(1.1);
}

.species-card .species-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.species-card .species-card-placeholder span {
    font-size: 80px;
    opacity: 0.3;
}

.species-card .species-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.species-card .species-card-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.species-card .species-card-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.species-card .species-card-content h3 a:hover {
    color: var(--primary);
}

.species-card .scientific-name {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
    margin: 0 0 16px;
}

.species-card .species-card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 20px;
    flex: 1;
}

.species-card .species-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.species-card .species-card-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.species-card .species-card-link span {
    transition: transform 0.3s ease;
}

.species-card .species-card-link:hover span {
    transform: translateX(4px);
}

/* Badges de categoría */
.featured-species-category,
.species-card-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.category-icon {
    font-size: 16px;
    line-height: 1;
}

.category-name {
    font-size: 13px;
}

/* Resultados de búsqueda */
.species-results-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.species-results-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.results-count {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .species-card-large {
        grid-template-columns: 1fr;
    }
    
    .species-card-large .species-card-image {
        min-height: 280px;
    }
    
    .species-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .encyclopedia-category-section {
        padding: 60px 40px;
    }
    
    .category-section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .filter-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search,
    .filter-category {
        width: 100%;
        min-width: 100%;
    }
    
    .species-grid {
        grid-template-columns: 1fr;
    }
    
    .encyclopedia-category-section {
        padding: 40px 24px;
    }
    
    .category-section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Single Pages */
.blog-post-single,
.glossary-term-single,
.species-single {
    padding: 60px 80px;
    width: 100%;
    margin: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.post-header,
.term-header,
.species-header {
    margin-bottom: 48px;
    text-align: left;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.term-header {
    text-align: left;
}

.species-header {
    text-align: left;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.post-content,
.term-definition {
    line-height: 1.9;
    font-size: 18px;
    color: var(--text-primary);
}

.post-content h2,
.post-content h3 {
    margin-top: 48px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-featured-image,
.species-featured-image {
    width: 100%;
    margin: 0 auto 48px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.post-featured-image img,
.species-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.post-tags strong {
    margin-right: 12px;
    font-weight: 600;
}

.related-posts {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.related-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h3 {
    padding: 24px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.related-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h3 a:hover {
    color: var(--primary);
}

.related-card p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.species-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    margin-top: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.species-section {
    margin-bottom: 48px;
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.species-section h2 {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.content-text {
    line-height: 1.9;
    font-size: 18px;
    color: var(--text-primary);
}

.content-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.content-text li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.info-box,
.breeds-box {
    background: var(--bg-primary);
    padding: 36px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.info-box h3,
.breeds-box h3 {
    margin-bottom: 28px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.breeds-list {
    list-style: none;
}

.breeds-list li {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.breeds-list li:last-child {
    border-bottom: none;
}

.breeds-list img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.breeds-list h4 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 18px;
}

.breeds-list p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 32px;
}


.empty-state {
    text-align: center;
    padding: 100px 24px;
    color: var(--text-secondary);
}

.error-404-section {
    padding: 140px 24px;
    background: var(--bg-secondary);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0 80px;
}

.error-number {
    font-size: 140px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1;
    letter-spacing: -4px;
}

.error-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.error-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .top-bar-container {
        padding: 0 40px;
    }
    
    .header-container {
        padding: 16px 40px;
        gap: 16px;
    }
    
    .hero-container {
        padding: 0 40px;
    }
    
    .section-header {
        padding: 0 40px;
    }
    
    .features-grid {
        padding: 0 40px;
    }
    
    .cta-content {
        padding: 0 40px;
    }
    
    .footer-container {
        padding: 0 40px;
    }
    
    .blog-layout {
        padding: 60px 40px;
    }
    
    .blog-post-single,
    .glossary-term-single,
    .species-single {
        padding: 60px 40px;
    }
    
    .page-subtitle {
        padding: 0 40px;
    }
    
    .error-content {
        padding: 0 40px;
    }
    
    .glossary-filters,
    .encyclopedia-filters,
    .faq-filters {
        padding: 40px;
        margin: 0 40px 48px;
    }
    
    .glossary-grid {
        padding: 0 40px 60px;
    }
    
    .encyclopedia-header-section,
    .faq-header-section {
        padding: 80px 40px 60px;
    }
    
    .encyclopedia-header-section h1,
    .faq-header-section h1 {
        font-size: 42px;
    }
    
    .encyclopedia-header-subtitle,
    .faq-header-subtitle {
        font-size: 18px;
    }
    
    .featured-species-section,
    .featured-faqs-section {
        padding: 60px 40px;
    }
    
    .encyclopedia-filters-section,
    .faq-filters-section {
        padding: 40px;
    }
    
    .species-list-section,
    .faq-accordion-section {
        padding: 60px 40px 80px;
    }
    
    .species-card-large {
        grid-template-columns: 1fr;
    }
    
    .species-card-image {
        min-height: 280px;
    }
    
    .featured-species-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .logo-image {
        height: 45px;
        max-width: 240px;
    }
    
    .main-nav {
        gap: 1px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 11px;
    }
    
    .auth-buttons.desktop {
        gap: 8px;
    }
    
    .btn-sm {
        padding: 7px 14px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .top-bar-container {
        padding: 0 40px;
    }
    
    .header-container {
        padding: 16px 40px;
        gap: 16px;
    }
    
    .hero-container {
        padding: 0 40px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-header {
        padding: 0 40px;
    }
    
    .features-grid {
        padding: 0 40px;
    }
    
    .cta-content {
        padding: 0 40px;
    }
    
    .footer-container {
        padding: 0 40px;
    }
    
    .blog-layout {
        padding: 60px 40px;
        grid-template-columns: 1fr;
    }
    
    .blog-post-single,
    .glossary-term-single,
    .species-single {
        padding: 60px 40px;
    }
    
    .page-subtitle {
        padding: 0 40px;
    }
    
    .error-content {
        padding: 0 40px;
    }
    
    .logo-image {
        height: 40px;
        max-width: 220px;
    }
    
    .main-nav {
        gap: 1px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .auth-buttons.desktop {
        gap: 6px;
    }
    
    .btn-sm {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .species-content-grid {
        grid-template-columns: 1fr;
    }
    
    .species-card-large {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Top Bar Responsive */
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        padding: 0 24px;
    }
    
    .header-container {
        padding: 12px 24px;
    }
    
    .hero-container {
        padding: 0 24px;
    }
    
    .section-header {
        padding: 0 24px;
        margin-bottom: 48px;
    }
    
    .features-grid {
        padding: 0 24px;
    }
    
    .cta-content {
        padding: 0 24px;
    }
    
    .footer-container {
        padding: 0 24px;
    }
    
    .blog-layout {
        padding: 40px 24px;
        grid-template-columns: 1fr;
    }
    
    .blog-post-single,
    .glossary-term-single,
    .species-single {
        padding: 40px 24px;
    }
    
    .page-subtitle {
        padding: 0 24px;
    }
    
    .error-content {
        padding: 0 24px;
    }
    
    .glossary-filters,
    .encyclopedia-filters,
    .faq-filters {
        padding: 24px;
        margin: 0 24px 32px;
    }
    
    .glossary-grid {
        padding: 0 24px 40px;
    }
    
    .encyclopedia-header-section,
    .faq-header-section {
        padding: 60px 24px 40px;
    }
    
    .encyclopedia-header-section h1,
    .faq-header-section h1 {
        font-size: 32px;
    }
    
    .encyclopedia-header-subtitle,
    .faq-header-subtitle {
        font-size: 16px;
    }
    
    .featured-species-section,
    .featured-faqs-section {
        padding: 40px 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .encyclopedia-filters-section,
    .faq-filters-section {
        padding: 32px 24px;
    }
    
    .filter-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search,
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .filter-checkbox-label {
        width: 100%;
        justify-content: flex-start;
    }
    
    .species-list-section,
    .faq-accordion-section {
        padding: 40px 24px 60px;
    }
    
    .species-card-large {
        grid-template-columns: 1fr;
    }
    
    .species-card-content {
        padding: 32px;
    }
    
    .species-card-content h2 {
        font-size: 24px;
    }
    
    .featured-species-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-species-info {
        padding: 24px;
    }
    
    .species-content-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        text-align: center;
    }
    
    .top-bar-link {
        font-size: 12px;
        justify-content: center;
    }
    
    .top-bar-languages {
        justify-content: center;
    }
    
    /* Header Responsive */
    .header-container {
        padding: 12px 16px;
    }
    
    .logo a {
        font-size: 22px;
    }
    
    .logo-image {
        height: 45px;
        max-width: 250px;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px 24px;
        box-shadow: var(--shadow-xl);
        z-index: 999;
        overflow-y: auto;
        gap: 8px;
        animation: slideInRight 0.3s ease;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 16px 20px;
        font-size: 18px;
        border-radius: 12px;
        width: 100%;
        text-align: left;
        border: 2px solid var(--border);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--gradient-light);
        border-color: var(--primary-light);
        transform: translateX(8px);
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .auth-buttons.desktop {
        display: none;
    }
    
    .auth-buttons.mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 2px solid var(--border);
    }
    
    .auth-buttons.mobile .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Responsive */
    .hero-section {
        padding: 100px 24px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .floating-pet {
        font-size: 100px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Footer Responsive */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 40px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
}
