:root {
    --primary-color: hsl(180, 100%, 25.1%);
    --accent-color: hsl(180, 80%, 35%);
    --background-color: hsl(0, 0%, 98%);
    --foreground-color: hsl(224, 30%, 20%);
    --card-color: hsl(0, 0%, 100%);
    --secondary-color: hsl(0, 0%, 96%);
    --destructive-color: hsl(0, 84.2%, 60.2%);
    --text-color: hsl(224, 20%, 30%);
    --text-light: hsl(224, 10%, 50%);
    --dark-color: var(--primary-color);
    --light-color: var(--background-color);
    --font-main: 'Noto Sans', sans-serif;
    --font-heading: 'Noto Sans', sans-serif;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--card-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.cuenta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: var(--card-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.6s ease;
    transform: skewX(-15deg);
}

.btn:hover::before {
    transform: skewX(-15deg) translateX(200%);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--card-color);
}

/* Header Styles */
header {
    background-color: var(--card-color);
    color: var(--text-color);
    padding: 1.2rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active:after {
    width: 100%;
}

.search-container {
    display: flex;
    margin-left: 2rem;
}

.search-container form {
    display: flex;
    width: 100%;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.header-search-input-container {
    position: relative;
    width: 220px;
}

.search-container input {
    padding: 10px 14px;
    border: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-color);
}

.search-container input:focus {
    outline: none;
}

.search-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-container button:hover {
    background-color: var(--accent-color);
}

.search-type-header {
    padding: 10px 14px;
    border: none;
    background-color: var(--card-color);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    border-right: 1px solid var(--secondary-color);
}

/* Estilos para el contenedor de sugerencias en el header */
#header-suggestions-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border: 0px solid var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: max-height 0.3s ease, border-width 0.3s ease;
}

#header-suggestions-container.active {
    max-height: 300px;
    border-width: 1px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--secondary-color);
    transition: background-color 0.2s ease;
}

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

.suggestion-item:hover, .suggestion-item.selected {
    background-color: var(--background-color);
}

.suggestion-codigo {
    font-weight: 600;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.suggestion-nombre {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    font-size: 0.85rem;
}

.suggestion-nivel {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
    margin-left: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.suggestion-nivel.Clase {
    background-color: var(--primary-color);
}

.suggestion-nivel.Grupo {
    background-color: var(--accent-color);
}

.suggestion-nivel.Cuenta {
    background-color: hsl(180, 60%, 45%);
}

.suggestion-nivel.Subcuenta {
    background-color: hsl(180, 40%, 55%);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s;
    position: relative;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 128, 128, 0.1);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    color: var(--secondary-color);
}

.mobile-menu-btn.active i::before {
    content: '\f00d';
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--card-color);
    padding: 6rem 0;
    text-align: center;
    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" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--card-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
}

/* Main Content Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--background-color);
    position: relative;
}

.section-alt::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" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.03)"/></svg>');
    opacity: 0.5;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.section-heading h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* What is PUC Section */
.what-is-puc {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.what-is-puc-content {
    flex: 1;
}

.what-is-puc-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.what-is-puc-image {
    flex: 1;
    text-align: center;
}

.what-is-puc-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-puc-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* PUC Structure Section */
.puc-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.structure-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.structure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.structure-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.structure-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.structure-card ul li {
    position: relative;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.structure-card ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.structure-card ul li:hover {
     background-color: rgba(0, 128, 128, 0.05);
     transform: translateX(5px);
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.structure-card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.structure-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Key Features Section */
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    flex: 1 1 45%;
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.feature-example {
    background-color: var(--background-color);
    padding: 1.25rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: monospace;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-example u {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.25rem;
}

.feature-example br + br {
    display: none;
}

.dynamic-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1.25rem 0;
}

.dynamic-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.dynamic-list li:before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
}

.dynamic-list li:hover {
    background-color: hsla(180, 100%, 50%, 0.05);
    border-radius: 3px;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background-color: var(--card-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-card-img {
    height: 150px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color);
    font-size: 3rem;
}

.resource-card-content {
    padding: 1.5rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Popular Accounts Section */
.popular-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.popular-account-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.popular-account-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.popular-account-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.popular-account-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.popular-account-card .account-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-bottom-left-radius: var(--border-radius);
    font-weight: 600;
}

.popular-account-card.highlight {
    border: 2px solid var(--primary-color);
    background-color: rgba(0, 128, 128, 0.05);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--card-color);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--card-color);
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta .btn {
    background-color: var(--card-color);
    color: var(--primary-color);
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--card-color);
    padding: 3rem 0 1.5rem;
}

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

.footer-col h3 {
    color: var(--card-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    padding: 0.3rem 0 0.3rem 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.footer-col ul li:hover {
    border-left: 2px solid var(--accent-color);
    padding-left: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--card-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--card-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .what-is-puc {
        flex-direction: column;
        gap: 3rem;
    }
    
    .what-is-puc-image {
        order: -1;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card-color);
        z-index: 1001;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    nav ul li {
        margin: 0;
        padding: 0;
    }
    
    nav ul li a {
        display: block;
        font-size: 1.2rem;
        padding: 0.75rem 0;
    }
    
    .search-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        order: 3;
        flex: 1 1 100%;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .feature {
        flex: 1 1 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .puc-structure-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-heading {
        margin-bottom: 2.5rem;
    }
    
    .section-heading h2 {
        font-size: 1.6rem;
    }
    
    .structure-card {
        padding: 1.5rem;
    }
}