* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9, #ffffff);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Make all images scale down within their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header logo should be responsive even with inline width */
header .logo img {
    width: 100% !important;
    max-width: 220px;
    height: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(19, 76, 126, 0.05);
    border: 1px solid rgba(19, 76, 126, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.lang-option {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
    border: none;
    background: transparent;
}

.lang-option.active {
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    color: white;
    box-shadow: 0 2px 8px rgba(19, 76, 126, 0.3);
}

.lang-option:hover:not(.active) {
    color: #134c7e;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(19, 76, 126, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 300px;
    height: 36px;
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(19, 76, 126, 0.3);
}

.logo-text {
    font-weight: 600;
    color: #134c7e;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: #134c7e;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #134c7e;
    border-radius: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-button {
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(19, 76, 126, 0.3);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(19, 76, 126, 0.4);
}

/* Make navbar CTA match language button size */
.header-right .cta-button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid rgba(19, 76, 126, 0.1);
    padding: 12px 0 16px 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #134c7e;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(19, 76, 126, 0.08), transparent);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 90, 150, 0.06), transparent);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(19, 76, 126, 0.05);
    border: 1px solid rgba(19, 76, 126, 0.2);
    color: #134c7e;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #134c7e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    margin: 20px 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #0f172a 0%, #134c7e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 19px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(19, 76, 126, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(19, 76, 126, 0.4);
}

.btn-secondary {
    background: white;
    color: #134c7e;
    border: 2px solid rgba(19, 76, 126, 0.2);
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #134c7e;
    color: white;
    border-color: #134c7e;
    transform: translateY(-1px);
}

.hero-features {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: #64748b;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-feature::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-feature:nth-child(1)::before { background: #134c7e; }
.hero-feature:nth-child(2)::before { background: #1e5a96; }
.hero-feature:nth-child(3)::before { background: #2563eb; }

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(19, 76, 126, 0.1), rgba(30, 90, 150, 0.05));
    border-radius: 20px;
    filter: blur(30px);
    z-index: -1;
}

.dashboard-mockup {
    border-radius: 16px;
    border: 1px solid rgba(19, 76, 126, 0.1);
    box-shadow: 0 25px 50px rgba(19, 76, 126, 0.15);
    background: white;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-mockup img {
    width: 100%;
    height: auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.stat-item {
    padding: 16px 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(19, 76, 126, 0.1);
    box-shadow: 0 2px 8px rgba(19, 76, 126, 0.05);
}

.stat-title {
    color: #134c7e;
    font-weight: 700;
    font-size: 13px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    max-width: 600px;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    border-radius: 2px;
}

.section-header p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(19, 76, 126, 0.1);
    background: white;
    box-shadow: 0 4px 20px rgba(19, 76, 126, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #134c7e, #1e5a96);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(19, 76, 126, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(19, 76, 126, 0.1), rgba(30, 90, 150, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #134c7e;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Two Column Sections */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-image {
    border-radius: 16px;
    border: 1px solid rgba(19, 76, 126, 0.1);
    box-shadow: 0 8px 30px rgba(19, 76, 126, 0.12);
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tag {
    padding: 8px 16px;
    background: rgba(19, 76, 126, 0.05);
    color: #134c7e;
    border: 1px solid rgba(19, 76, 126, 0.2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #134c7e 0%, #1e5a96 50%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(19, 76, 126, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn-white {
    background: white;
    color: #134c7e;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(19, 76, 126, 0.1);
    border-radius: 16px;
    margin-bottom: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(19, 76, 126, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    color: #134c7e;
}

.faq-icon {
    color: #134c7e;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: rgba(19, 76, 126, 0.2);
    box-shadow: 0 4px 20px rgba(19, 76, 126, 0.1);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    padding: 32px;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(19, 76, 126, 0.1);
    box-shadow: 0 8px 30px rgba(19, 76, 126, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #134c7e;
    background: white;
    box-shadow: 0 0 0 4px rgba(19, 76, 126, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(19, 76, 126, 0.3);
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(19, 76, 126, 0.4);
}

.form-disclaimer {
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    margin-top: 32px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    color: #475569;
    font-weight: 500;
}

.contact-info li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #134c7e;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(19, 76, 126, 0.1);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-weight: 700;
    color: #134c7e;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #134c7e;
}

.footer-bottom {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(19, 76, 126, 0.1);
}

/* Background sections */
.bg-gray {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    header .logo img {
        max-width: 180px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .hero p {
        font-size: 18px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    .hero-content,
    .two-column,
    .cta-content,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .header-content {
        height: 56px;
    }
    header .logo img {
        max-width: 140px;
    }
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .btn-primary,
    .btn-white,
    .btn-outline,
    .cta-button {
        padding: 12px 18px;
        font-size: 15px;
    }
    .cta-section {
        padding: 32px 24px;
        border-radius: 16px;
    }
}

/* Fondo gris translúcido */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* gris oscuro semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* encima de todo */
}

/* Spinner */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Mobile menu polish */
.mobile-menu a + a {
    border-top: 1px dashed rgba(19, 76, 126, 0.15);
}

.mobile-menu a:hover {
    color: #134c7e;
}

.mobile-menu .cta-button {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #134c7e, #1e5a96);
    box-shadow: 0 4px 16px rgba(19, 76, 126, 0.25);
}

.mobile-menu .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(19, 76, 126, 0.35);
}
