/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 25px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    min-height: 20px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
    position: relative;
    z-index: 1001;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-company {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-symbol {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo Image */
.logo-image {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-top: -30px;
    margin-bottom: -30px;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Logo as button */
.logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo a:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu a:hover {
    color: #e2e8f0;
}

.nav-menu .btn-login {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-menu .btn-login:hover {
    background: linear-gradient(135deg, #2c8ba8 0%, #1a5f7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.nav-menu .btn-secondary {
    background: transparent;
    color: #1a5f7a !important;
    border: 2px solid #1a5f7a;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    margin-right: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-menu .btn-secondary:hover {
    background: #1a5f7a;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    height: 100%;
    font-weight: 500;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.9em;
    font-weight: bold;
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-top: 2px;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-toggle {
    color: #e2e8f0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -60px;
    background: rgba(51, 65, 85, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(148, 163, 184, 0.2);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: block !important;
}

/* Debug: Make dropdown always visible for testing */
.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1a5f7a 0%, #2c8ba8 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    padding-left: 1.75rem;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.dropdown-menu a:hover::before {
    width: 100%;
}

.dropdown-menu a i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 2px;
    flex-shrink: 0;
}

.dropdown-menu a:hover i {
    transform: scale(1.2);
    color: #ffffff;
}

.dropdown-menu a .menu-text {
    flex: 1;
    min-width: 0;
}

.dropdown-menu a .menu-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.dropdown-menu a:hover .menu-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown arrow animation */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 85px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    z-index: 1001;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 85px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e2e8f0;
    z-index: 1000;
}

/* Active state for dropdown items */
.dropdown-menu a.active {
    background: linear-gradient(90deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.dropdown-menu a.active .menu-description {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu a.active i {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.nav-buttons .btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    display: inline-block;
}

.nav-buttons .btn-login:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Estilos específicos para el botón secundario del header */
.nav-buttons .btn-secondary {
    background: #1e293b;
    color: white;
    border: 2px solid #3b82f6;
    backdrop-filter: blur(10px);
}

.nav-buttons .btn-secondary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
    color: white !important;
}

.btn-secondary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}



.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Estilos específicos para botones del hero */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f1f5f9;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4), 0 0 60px rgba(6, 182, 212, 0.2);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-graphic i {
    font-size: 10rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Trust Section */
.trust {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    text-align: center;
}

.trust-text {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-placeholder {
    width: 120px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-header .header-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    justify-items: center;
}

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.learn-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #06b6d4;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    justify-items: center;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.testimonial-card p {
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.testimonial-author strong {
    color: #3b82f6;
    display: block;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.testimonial-author span {
    color: #94a3b8;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    justify-items: center;
}

.blog-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-content p {
    color: #cbd5e1;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: #1a5f7a;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1a5f7a;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #1a5f7a;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Pricing Page Styles */
.pricing-section {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
    justify-items: center;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #1a5f7a;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a5f7a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.pricing-header h3 {
    color: #1a5f7a;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.price {
    margin-bottom: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.currency {
    font-size: 1rem;
    color: #666;
    vertical-align: top;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a5f7a;
}

.pricing-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-features ul li {
    padding: 0.6rem 0;
    color: #666;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.pricing-features ul li i {
    color: #1a5f7a;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-action {
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.additional-services .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.services-grid:has(.service-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    gap: 3rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 2rem;
    }
}

.service-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 748px;
    max-height: 792px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: visible;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #1a5f7a;
}

.service-card.featured {
    position: relative;
    box-shadow: 0 6px 25px rgba(26, 95, 122, 0.15);
}

.service-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(26, 95, 122, 0.2);
    border-color: #1a5f7a;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.2rem;
    color: white;
}

.service-card h3 {
    color: #1a5f7a;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 0;
    font-size: 0.95rem;
    min-height: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.service-features {
    margin: 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 180px;
}

.service-features ul li {
    padding: 0.4rem 0;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    min-height: 30px;
}

.service-features ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-features ul li i {
    color: #1a5f7a;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    min-width: 16px;
}

.service-price {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f7a;
    margin-top: auto;
    flex-shrink: 0;
    overflow: hidden;
}

.service-price::before {
    content: none;
}

.service-price::after {
    content: none;
}

.service-price .price {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 2;
}

.service-price .currency {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.price-note {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    margin-top: 0.2rem;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.service-card button,
.service-card .btn-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.service-card button:hover,
.service-card .btn-primary:hover {
    background: linear-gradient(135deg, #2c8ba8 0%, #1a5f7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}



/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

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

.faq-question h3 {
    color: #1a5f7a;
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    color: #1a5f7a;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Active Navigation Link */
.nav-menu a.active {
    color: #1a5f7a;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(51, 65, 85, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 80px 20px 20px;
        overflow-y: auto;
        border-right: 1px solid rgba(148, 163, 184, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .nav-menu li:last-child {
        margin-bottom: 2rem;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        font-weight: 600;
        color: #f1f5f9;
        text-decoration: none;
        padding: 1.2rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        margin: 0.5rem 0;
        background: rgba(71, 85, 105, 0.8);
        border: 1px solid rgba(148, 163, 184, 0.3);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a:hover {
        background: #64748b;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
    }
    
    .dropdown-toggle {
        background: rgba(71, 85, 105, 0.8);
        border: 1px solid rgba(148, 163, 184, 0.3);
        font-size: 1.3rem;
        font-weight: 600;
        color: #f1f5f9;
        cursor: pointer;
        padding: 1.2rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-toggle:hover {
        background: #64748b;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
    }
    
    .dropdown-toggle::after {
        content: '▼';
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle.active::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        margin: 0.3rem 0;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #1a5f7a;
        text-align: left;
    }
    
    .dropdown-menu a:hover {
        background: #1a5f7a;
        color: white;
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(26, 95, 122, 0.2);
    }
    
    .dropdown-menu a i {
        margin-right: 0.8rem;
        width: 20px;
        text-align: center;
        font-size: 1rem;
    }
    
    .dropdown-menu a .menu-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dropdown-menu a .menu-description {
        display: block;
        font-size: 0.85rem;
        color: #666;
        margin-top: 0.3rem;
        font-weight: 400;
        line-height: 1.3;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }
    
    .nav-buttons {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        max-width: 300px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-buttons.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-buttons .btn-primary,
    .nav-buttons .btn-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
        display: block;
        font-weight: 600;
        border: none;
        transition: all 0.3s ease;
    }
    
    .nav-buttons .btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
        color: white;
    }
    
    .nav-buttons .btn-secondary {
        background: #1e293b;
        color: white;
        border: 2px solid #3b82f6;
    }
    
    .nav-buttons .btn-primary:hover {
        background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .nav-buttons .btn-secondary:hover {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .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);
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .hero-graphic i {
        font-size: 5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-logos {
        gap: 1rem;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 50px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .logo-image {
        height: 180px;
        margin-top: -30px;
        margin-bottom: -30px;
    }
}

/* Contact Page Styles */
.contact-info {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    justify-items: center;
}

.contact-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.form-content h2 {
    color: #1a5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.form-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5f7a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.checkbox-label a {
    color: #1a5f7a;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.sidebar-card ul li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
}

.sidebar-card ul li i {
    color: #1a5f7a;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f8fafc;
    color: #1a5f7a;
}

.social-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    margin-top: 3rem;
}

.map-placeholder {
    background: #f8fafc;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed #1a5f7a;
}

.map-placeholder i {
    font-size: 4rem;
    color: #1a5f7a;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-placeholder p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-form-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .logo-image {
        height: 180px;
        margin-top: -30px;
        margin-bottom: -30px;
    }
}

/* Services Page Specific Styles */
.services-overview {
    padding: 80px 0;
    background: white;
}

.additional-services {
    padding: 80px 0;
    background: #f8fafc;
}

.additional-services .service-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 552px;
    max-height: 598px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: visible;
}

.additional-services .service-card .service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.additional-services .service-card h3 {
    color: #1a5f7a;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.additional-services .service-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 0;
    font-size: 0.9rem;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.additional-services .service-card .service-features {
    margin: 0.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 160px;
    min-height: 160px;
    max-height: 160px;
}

.additional-services .service-card .service-features ul li {
    padding: 0.3rem 0;
    color: #555;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    min-height: 25px;
}

.additional-services .service-card .service-price {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f7a;
    margin-top: auto;
    flex-shrink: 0;
    overflow: hidden;
}

.additional-services .service-card button,
.additional-services .service-card .btn-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Mejora específica para la sección de servicios adicionales */
.additional-services .services-grid {
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 3rem;
}

/* Responsive para servicios adicionales */
@media (max-width: 768px) {
    .additional-services .services-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        gap: 2rem;
    }
} 

/* Additional Services Section - Specific styling for the 4 cards */
.additional-services .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    gap: 3rem;
}

.additional-services .service-card {
    min-height: 552px;
    max-height: 598px;
    max-width: 600px;
}

.additional-services .service-card .service-features {
    min-height: 130px;
    max-height: 150px;
}

.additional-services .service-card button {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    max-width: 180px;
}

/* Responsive for additional services */
@media (max-width: 768px) {
    .additional-services .services-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        gap: 2rem;
    }
    
    .additional-services .service-card {
        min-height: 552px;
        max-height: 598px;
    }
} 

/* Login Page Styles */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 50%, #1a5f7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a5f7a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

.login-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn.active {
    background: white;
    color: #1a5f7a;
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.15);
    transform: translateY(-1px);
}

.tab-btn:hover:not(.active) {
    color: #1a5f7a;
    background: rgba(26, 95, 122, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #1a5f7a;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #374151;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 3rem;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #1a5f7a;
    background: rgba(26, 95, 122, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #1a5f7a;
    border-color: #1a5f7a;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-label a {
    color: #1a5f7a;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #1a5f7a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #2c8ba8;
    text-decoration: underline;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.25);
    position: relative;
    overflow: hidden;
}

.login-form .btn-primary::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.5s;
}

.login-form .btn-primary:hover::before {
    left: 100%;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 95, 122, 0.35);
}

.login-form .btn-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .login-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 100px 10px 20px;
    }
    
    .login-container {
        padding: 1.25rem;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
    }
    
    .login-form .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dashboard Styles */

/* Forms Management Styles */
.forms-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.filters-bar select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    min-width: 150px;
}

.contacts-list, .services-list {
    display: grid;
    gap: 1rem;
}

.contact-card, .service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover, .service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-header, .service-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info, .service-info {
    flex: 1;
}

.contact-name, .service-company {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.contact-email, .service-email {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-phone, .service-phone {
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-meta, .service-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.in_progress {
    background: #d1fae5;
    color: #059669;
}

.status-badge.completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.replied {
    background: #e0e7ff;
    color: #7c3aed;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-badge.low {
    background: #f3f4f6;
    color: #6b7280;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.high {
    background: #fecaca;
    color: #dc2626;
}

.priority-badge.urgent {
    background: #fee2e2;
    color: #b91c1c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.contact-message, .service-description {
    color: #374151;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.contact-actions, .service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-actions button, .service-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-actions .btn-primary, .service-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
}

.contact-actions .btn-secondary, .service-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.contact-actions .btn-danger, .service-actions .btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.contact-actions button:hover, .service-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #111827;
    font-size: 1.125rem;
}

.chart-placeholder {
    height: 300px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-style: italic;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.forms-overview-stats .stat-icon.urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.forms-overview-stats .stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.forms-overview-stats .stat-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.forms-overview-stats .stat-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forms-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filters-bar select {
        min-width: auto;
    }
    
    .stats-charts {
        grid-template-columns: 1fr;
    }
    
    .contact-actions, .service-actions {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.dashboard-body {
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

.dashboard-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 120px;
    min-height: 120px;
}

.header-left .logo-image {
    height: 180px;
    width: auto;
    margin: -30px 0 -30px 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.header-left .logo-image:hover {
    transform: scale(1.05);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.dashboard-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
    background: #1a5f7a;
    color: white;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.user-email {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #1a5f7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 120px;
    width: 280px;
    height: calc(100vh - 120px);
    background: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    z-index: 999;
    padding: 2rem 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-btn:hover {
    background: #e2e8f0;
}

.sidebar-btn.primary {
    background: #1a5f7a;
    color: white;
}

.sidebar-btn.primary:hover {
    background: #2c8ba8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #1a5f7a;
    color: white;
}

.dashboard-main {
    margin-left: 280px;
    margin-top: 120px;
    padding: 2rem;
    min-height: calc(100vh - 120px);
    background: #f8fafc;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h1,
.section-header h2 {
    color: #1a5f7a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.section-header p {
    color: #666;
    margin: 0.5rem 0 0 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a5f7a;
    margin: 0;
}

.stat-content p {
    color: #666;
    margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dashboard-card h3 {
    color: #1a5f7a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #1a5f7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.activity-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.activity-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.25rem 0;
}

.activity-time {
    font-size: 0.75rem;
    color: #999;
}

/* Deadline List */
.deadline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.deadline-item.urgent {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.deadline-icon {
    width: 40px;
    height: 40px;
    background: #1a5f7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.deadline-item.urgent .deadline-icon {
    background: #ef4444;
}

.deadline-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.deadline-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.25rem 0;
}

.deadline-time {
    font-size: 0.75rem;
    color: #999;
}

/* Trámites Grid */
.tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.tramite-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tramite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tramite-header h3 {
    color: #1a5f7a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.status-badge.waiting {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.paid {
    background: #d1fae5;
    color: #059669;
}

.tramite-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5f7a 0%, #2c8ba8 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.completed {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
}

.tramite-details {
    margin-bottom: 1rem;
}

.tramite-details p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0;
}

.tramite-actions {
    display: flex;
    gap: 0.75rem;
}

/* Documentos Grid */
.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.documento-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.documento-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5f7a;
    font-size: 1.5rem;
}

.documento-info {
    flex: 1;
}

.documento-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.documento-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.25rem 0;
}

.documento-size {
    font-size: 0.75rem;
    color: #999;
}

.documento-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 6px;
    background: #f8fafc;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #1a5f7a;
    color: white;
}

/* e.Firma Container */
.efirma-container {
    max-width: 600px;
}

.efirma-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.efirma-status {
    text-align: center;
    margin-bottom: 2rem;
}

.status-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.efirma-status h3 {
    color: #1a5f7a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.efirma-status p {
    color: #666;
    margin: 0;
}

.efirma-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 600;
    color: #333;
}

.detail-value {
    color: #666;
}

.status-active {
    color: #059669;
    font-weight: 600;
}

.efirma-actions {
    display: flex;
    gap: 1rem;
}

/* Timeline Container */
.timeline-container {
    max-width: 800px;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.timeline-item.completed .timeline-marker {
    background: #059669;
    color: white;
}

.timeline-item.current .timeline-marker {
    background: #1a5f7a;
    color: white;
}

.timeline-item.pending .timeline-marker {
    background: #f3f4f6;
    color: #9ca3af;
}

.timeline-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    color: #1a5f7a;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.timeline-date {
    font-size: 0.8rem;
    color: #999;
}

/* Facturación Grid */
.facturacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.factura-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.factura-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.factura-header h4 {
    color: #1a5f7a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.factura-details {
    margin-bottom: 1rem;
}

.factura-details p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0;
}

.factura-actions {
    display: flex;
    gap: 0.75rem;
}

.facturacion-summary {
    max-width: 400px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.summary-card h4 {
    color: #1a5f7a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.amount.paid {
    color: #059669;
}

.amount.pending {
    color: #d97706;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    color: #1a5f7a;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1.5rem;
}

.upload-form,
.efirma-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 120px;
        height: calc(100vh - 120px);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        margin-top: 120px;
    }
    
    .dashboard-nav {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tramites-grid {
        grid-template-columns: 1fr;
    }
    
    .documentos-grid {
        grid-template-columns: 1fr;
    }
    
    .facturacion-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tramite-actions,
    .factura-actions,
    .efirma-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .dashboard-header {
        height: 100px;
        padding: 0 1rem;
    }
    
    .header-left .logo-image {
        height: 140px;
        margin: -20px 0 -20px 0;
    }
    
    .dashboard-sidebar {
        top: 100px;
        height: calc(100vh - 100px);
    }
    
    .dashboard-main {
        margin-top: 100px;
        padding: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .dashboard-nav {
        gap: 0.5rem;
    }
}

.admin-toggle {
    margin-right: 1rem;
}

.admin-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.admin-btn.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.admin-section {
    border-top: 2px solid #dc2626;
    margin-top: 1rem;
    padding-top: 1rem;
}

.admin-section h3 {
    color: #dc2626;
    font-weight: 700;
}

.sidebar-btn.admin-btn {
    background: #dc2626;
    color: white;
    border: none;
}

.sidebar-btn.admin-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Admin Modal Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.admin-modal-header h3 {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-modal-close:hover {
    background: #f3f4f6;
    color: #dc2626;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.admin-form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form-actions .btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.admin-form-actions .btn-cancel:hover {
    background: #e5e7eb;
}

.admin-form-actions .btn-save {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.admin-form-actions .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideInRight 0.3s ease-out;
}

.notification.removing {
    animation: slideOutRight 0.3s ease-in;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-login-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.admin-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.admin-login-btn i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 3rem;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #dc2626;
    background: #f3f4f6;
}

.admin-login-form {
    padding: 1rem 0;
}

.admin-login-form .admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.admin-login-form label i {
    color: #dc2626;
    width: 16px;
}

.admin-session-indicator {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.admin-badge {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    animation: pulse 2s infinite;
}

.admin-badge i {
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(5, 150, 105, 0.5);
    }
    100% {
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    }
}

.admin-login-info {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-login-info p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-login-info i {
    color: #10b981;
    font-size: 1rem;
}



@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .additional-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additional-services .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 100%;
    }
}

/* Ensure dropdown works on desktop */
@media (min-width: 769px) {
    .dropdown {
        position: relative;
        display: inline-block;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: -60px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
        min-width: 320px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        padding: 0.75rem 0;
        backdrop-filter: blur(10px);
        display: block !important;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* Debug: Make dropdown always visible for testing */
.service-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-card.featured:hover .service-badge {
    opacity: 1;
    visibility: visible;
}

.service-card.featured {
    position: relative;
    box-shadow: 0 6px 25px rgba(26, 95, 122, 0.15);
}

.service-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 748px;
    max-height: 792px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: visible;
}

/* Enhanced Admin Mode Styles */
.admin-only {
    display: none;
}

.admin-mode .admin-only {
    display: block;
}

.admin-mode .user-only {
    display: none;
}

/* Enhanced Admin Dashboard Layout */
.admin-mode .dashboard-main {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.admin-mode .sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    border-right: 2px solid #475569;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.admin-mode .sidebar-section h3 {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.admin-mode .sidebar-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.admin-mode .sidebar-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.admin-mode .sidebar-btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Admin Header */
.admin-mode .dashboard-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid #475569;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-mode .dashboard-header h1 {
    color: #f1f5f9;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.admin-mode .admin-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-mode .admin-status {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.admin-mode .admin-status i {
    font-size: 0.7rem;
}

/* Admin Cards */
.admin-mode .dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.admin-mode .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.admin-mode .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-mode .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.admin-mode .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* Admin Buttons */
.admin-mode .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.admin-mode .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.admin-mode .btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.admin-mode .btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

/* Admin Forms */
.admin-mode .admin-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.admin-mode .admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-mode .admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.admin-mode .admin-form-group input,
.admin-mode .admin-form-group select,
.admin-mode .admin-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.admin-mode .admin-form-group input:focus,
.admin-mode .admin-form-group select:focus,
.admin-mode .admin-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Admin Notifications */
.admin-mode .notification {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #92400e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.admin-mode .notification.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #065f46;
}

.admin-mode .notification.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #991b1b;
}

/* Admin Tables */
.admin-mode .admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-mode .admin-table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-mode .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.admin-mode .admin-table tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.admin-mode .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-mode .status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-mode .status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.admin-mode .status-badge.in-progress {
    background: #dbeafe;
    color: #1e40af;
}

/* Priority Indicators */
.admin-mode .priority-high {
    color: #dc2626;
    font-weight: 600;
}

.admin-mode .priority-medium {
    color: #f59e0b;
    font-weight: 600;
}

.admin-mode .priority-low {
    color: #059669;
    font-weight: 600;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.chat-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.chat-header:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.chat-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.chat-header-content i {
    font-size: 1.2rem;
    color: white;
}

.chat-header-content span {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #10b981;
}

.status-dot.offline {
    background: #6b7280;
}

.chat-controls {
    display: flex;
    gap: 0.5rem;
}

.chat-minimize, .chat-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chat-minimize:hover, .chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    z-index: -1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100% - 80px);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

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

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.support {
    align-self: flex-start;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.chat-message.user .chat-message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.chat-message.support .chat-message-avatar {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8ba8 100%);
}

.chat-message-content {
    background: white;
    padding: 14px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.chat-message-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.chat-message.support .chat-message-content {
    background: white;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.chat-message-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-message-time::before {
    content: '';
    width: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 50%;
}

.chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.chat-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.chat-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #374151;
    padding: 0;
    min-height: 20px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.chat-input-wrapper input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.chat-typing-indicator {
    padding: 10px 0;
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

.chat-notification {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 10px;
        right: 20px;
        left: 20px;
    }
    
    .chat-widget.minimized {
        height: 60px;
        width: 60px;
        right: 20px;
        left: auto;
        border-radius: 50%;
    }
}

/* Conversaciones Section Styles */
.conversaciones-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.conversaciones-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.conversaciones-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.conversaciones-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.conversaciones-stats .stat-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.conversaciones-stats .stat-item strong {
    color: #1f2937;
}

.conversaciones-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.conversaciones-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.conversaciones-content {
    padding: 20px;
}

.conversaciones-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversacion-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.conversacion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.conversacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.conversacion-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.conversacion-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.conversacion-preview {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.conversacion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.conversacion-messages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.conversacion-messages i {
    color: #3b82f6;
}

.conversacion-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.conversacion-status.online {
    color: #10b981;
}

.conversacion-status.offline {
    color: #ef4444;
}

.conversacion-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Responsive Conversaciones */
@media (max-width: 768px) {
    .conversaciones-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .conversaciones-stats {
        justify-content: center;
    }
    
    .conversaciones-actions {
        justify-content: center;
    }
    
    .conversacion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .conversacion-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.chat-widget.minimized {
    height: 60px !important;
    width: 60px !important;
    transform: scale(1);
    border-radius: 50% !important;
    overflow: hidden !important;
}

.chat-widget.minimized .chat-body {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

.chat-widget.minimized .chat-header {
    border-radius: 50% !important;
    cursor: pointer;
    height: 60px !important;
    width: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

.chat-widget.minimized .chat-header:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.chat-widget.minimized .chat-header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.chat-widget.minimized .chat-header-content i {
    font-size: 1.5rem !important;
    color: white !important;
    margin: 0 !important;
}

.chat-widget.minimized .chat-header-content span,
.chat-widget.minimized .chat-status,
.chat-widget.minimized .chat-controls {
    display: none !important;
}

/* Animación de pulso para el chat minimizado */
.chat-widget.minimized .chat-header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}