/* Font Display Optimization with preload hints */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
    /* Performance hints */
    unicode-range: U+f000-f2ff;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
    /* Performance hints */
    unicode-range: U+f000-f2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

:root {
    --primary: #0D47A1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary: #22d3ee;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background-light: #ffffff;
    --background-dark: #121212;
    --card-light: #ffffff;
    --card-dark: #1e1e1e;
    --gradient: linear-gradient(135deg, #0D47A1 0%, #5472d3 100%);
}

[data-theme="dark"] {
    --primary: #5472d3;
    --primary-dark: #0D47A1;
    --primary-light: #84a0ef;
    --text-dark: #e2e8f0;
    --text-light: #94a3b8;
    --background-light: #121212;
    --background-dark: #000000;
    --card-light: #1e1e1e;
    --card-dark: #0f0f0f;
}

/* Aplicar background a html también para mejor Speed Index */
html {
    background: var(--background-light);
}

html[data-theme="dark"] {
    background: var(--background-light);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--background-light);
}

.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--gradient);
    opacity: 0.05;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.03;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    background: var(--primary);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 10%;
    top: 50%;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
    animation-duration: 25s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    bottom: 20%;
    background: var(--primary-dark);
    border-radius: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] nav {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

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

.theme-toggle, .language-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .language-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--card-light);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

[data-theme="dark"] .mobile-menu {
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
    transition: color 0.3s;
}

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

.mobile-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.1);
}

[data-theme="dark"] .mobile-control-item {
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-control-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-control-label i {
    font-size: 1.2rem;
    color: var(--primary);
}

.mobile-control-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-control-button:active {
    transform: scale(0.95);
}

.mobile-cta {
    margin-top: 2rem;
    width: 100%;
}

a {
    text-decoration: none;
}

.mobile-cta .cta-button {
    width: 100%;
    text-align: center;
    display: block;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Performance optimizations for gradient text */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Reduce layout thrashing */
    contain: layout style paint;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.secondary-button {
    background: var(--card-light);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease;
}

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

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transform: perspective(800px) rotateY(-15deg);
    transition: all 0.5s ease;
    animation: phone-rotate 8s infinite ease-in-out;
}

.phone-frame {
    background: white;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid #000000; /* Borde negro para tema claro */
}

body[data-theme="dark"] .phone-frame {
    background: #1e1e1e;
    border: 2px solid #ffffff; /* Borde blanco para tema oscuro */
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: black;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

@keyframes phone-rotate {
    0% { transform: perspective(800px) rotateY(-15deg); }
    50% { transform: perspective(800px) rotateY(15deg); }
    100% { transform: perspective(800px) rotateY(-15deg); }
}

.phone-mockup:hover {
    animation-play-state: paused;
    transform: perspective(800px) rotateY(0deg);
    box-shadow: 0 25px 60px rgba(13, 71, 161, 0.4);
    border-radius: 40px;
}

.phone-screen {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    padding: 50px 20px 20px;
    min-height: 600px;
}

body.dark-mode .phone-screen {
    background: #000000;
}

/* Theme-based styles */
body[data-theme="light"] .phone-screen {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body[data-theme="dark"] .phone-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Dark theme specific styles */
body[data-theme="dark"] .app-header {
    background: transparent;
    color: #ffffff;
}

body[data-theme="dark"] .app-header h2 {
    color: #ffffff;
}

body[data-theme="dark"] .quick-amounts-title {
    color: #ffffff;
}

body[data-theme="dark"] .quick-button {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

body[data-theme="dark"] .quick-button:hover {
    background: #4a4a4a;
    border-color: #666666;
}

body[data-theme="dark"] .converter-card {
    background: #2d2d2d;
    border: 1px solid #444444;
}

body[data-theme="dark"] .currency-label {
    color: #cccccc;
}

body[data-theme="dark"] .currency-select {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

body[data-theme="dark"] .amount-input {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

body[data-theme="dark"] .exchange-rate {
    color: #cccccc;
}

.swap-button i {
    transform: rotate(90deg);
}

.swap-button:hover {
    background: #e9ecef;
    transform: rotate(180deg);
}

body[data-theme="dark"] .swap-button {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

body[data-theme="dark"] .swap-button:hover {
    background: #4a4a4a;
    transform: rotate(180deg);
}

body[data-theme="dark"] .currency-item {
    background: transparent;
    border-bottom: 1px solid #444444;
}

body[data-theme="dark"] .currency-code {
    color: #ffffff;
}

body[data-theme="dark"] .currency-name {
    color: #cccccc;
}

body[data-theme="dark"] .currency-value {
    color: #ffffff;
}

body[data-theme="dark"] .currency-rate {
    color: #999999;
}

/* Header icon button styles */
.header-icon {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.header-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .header-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: none;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .app-header {
    border-bottom: none;
}

.app-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    flex: 1;
    text-align: center;
}

body.dark-mode .app-header h2 {
    color: #ffffff;
}

.app-header .header-icons {
    display: flex;
    gap: 15px;
}

.app-header .header-icon {
    width: 24px;
    height: 24px;
    color: #666666;
    cursor: pointer;
}

body.dark-mode .app-header .header-icon {
    color: #ffffff;
}

.quick-amounts {
    margin-bottom: 25px;
}

.quick-amounts-title {
    font-size: 16px;
    color: #666666;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .quick-amounts-title {
    color: #ffffff;
}

.quick-amounts-title .edit-icon {
    color: #007AFF;
    font-size: 16px;
    cursor: pointer;
}

body.dark-mode .quick-amounts-title .edit-icon {
    color: #007AFF;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.quick-buttons-row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-button {
    background: #F2F2F7;
    border: none;
    color: var(--primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .quick-button {
    background: #1C1C1E;
    border: none;
    color: var(--primary);
}

body[data-theme="dark"] .quick-button {
    background: #1C1C1E;
    border: none;
    color: var(--primary);
}

.quick-button:hover {
    background: #E5E5EA;
}

body.dark-mode .quick-button:hover {
    background: #2C2C2E;
}

.converter-card {
    background: #F2F2F7;
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
    margin-bottom: 20px;
}

body.dark-mode .converter-card {
    background: #1C1C1E;
}

.currency-section {
    margin-bottom: 15px;
}

.currency-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: left;
}

body.dark-mode .currency-label {
    color: #ffffff;
}

.currency-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.currency-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

body.dark-mode .currency-select {
    background: transparent;
    color: #ffffff;
}

body[data-theme="dark"] .currency-select {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

.currency-select:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .currency-select:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Flag Icons Styling */
.fi {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amount-input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 16px;
    font-size: 28px;
    font-weight: 400;
    color: #1a202c;
    text-align: right;
    flex: 1;
    outline: none;
    min-width: 0;
    width: 120px; /* Match dropdown width */
}

.amount-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Special styling for the 'to' field (second amount-input) */
.currency-section:last-of-type .amount-input {
    background: transparent;
    border: none;
    padding: 12px 0;
    color: var(--primary);
}

body[data-theme="dark"] .amount-input {
    background: #2A2B2F;
    border: 1px solid #4a5568;
    color: #ffffff;
}

/* Dark theme for 'to' field */
body[data-theme="dark"] .currency-section:last-of-type .amount-input {
    background: transparent;
    border: none;
    color: var(--primary);
}

body[data-theme="dark"] .amount-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

/* No focus styles for 'to' field */
.currency-section:last-of-type .amount-input:focus {
    border: none;
    box-shadow: none;
}

.amount-display {
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    text-align: right;
    flex: 1;
}

body.dark-mode .amount-display {
    color: #ffffff;
}

/* Exchange section with rate and swap button */
.exchange-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 16px 0;
}

body[data-theme="dark"] .exchange-section {
    border-top: 1px solid #444444;
    border-bottom: 1px solid #444444;
}

.exchange-rate {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

body[data-theme="dark"] .exchange-rate {
    color: #cccccc;
}

.swap-button {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    flex-shrink: 0;
}

body[data-theme="dark"] .swap-button {
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
}

body[data-theme="dark"] .swap-button:hover {
    background: #4a4a4a;
}

.popular-currencies {
    margin-top: 20px;
}

.popular-title {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .popular-title {
    color: #ffffff;
}

.currency-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

body.dark-mode .currency-item {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-info > div {
    text-align: left;
}

.currency-code {
    font-weight: 600;
    color: #000000;
    font-size: 16px;
}

body.dark-mode .currency-code {
    color: #ffffff;
}

.currency-name {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
}

body.dark-mode .currency-name {
    color: #ffffff;
}

.currency-value {
    font-weight: 400;
    color: #000000;
    font-size: 16px;
    text-align: right;
}

body.dark-mode .currency-value {
    color: #ffffff;
}

.currency-rate {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
}

body.dark-mode .currency-rate {
    color: #ffffff;
}

.about-section {
    padding: 5rem 2rem;
    background: var(--card-light);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.download-section {
    padding: 5rem 2rem;
    background: var(--background-light);
    text-align: center;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

.download-header {
    margin-bottom: 3rem;
}

.download-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.platform-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--card-light);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(13, 71, 161, 0.1);
}

[data-theme="dark"] .platform-button {
    background: var(--card-dark);
    border: 1px solid rgba(84, 114, 211, 0.2);
}

.platform-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
    border-color: var(--primary);
}

.platform-icon {
    font-size: 2rem;
    color: var(--primary);
}

.platform-text {
    text-align: left;
}

.platform-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.platform-name {
    font-size: 1.2rem;
}

.features {
    padding: 5rem 2rem;
    background: var(--card-light);
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--background-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 71, 161, 0.1);
}

[data-theme="dark"] .feature-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(84, 114, 211, 0.2);
}

/* Removido el hover de feature-card para evitar confusión ya que no son clickeables */

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

.faq-section {
    padding: 5rem 2rem;
    background: var(--background-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

footer {
    background: var(--card-light);
    padding: 3rem 2rem;
    color: var(--text-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    flex-direction: row;
}

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

.footer-logo img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: right;
    margin: 0;
    padding: 0;
    border: none;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .phone-mockup {
        transform: rotate(0);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .features h2 {
        font-size: 2.5rem;
    }

    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }

    .platform-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }

    .about-container h2,
    .faq-container h2,
    .download-header h2 {
        font-size: 2rem;
    }
}

/* ========================================
   Privacy Policy Page Styles
   ======================================== */

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--text-light);
    font-size: 1rem;
    font-style: italic;
}

.privacy-content {
    background: var(--card-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(13, 71, 161, 0.1);
}

[data-theme="dark"] .privacy-content {
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(84, 114, 211, 0.2);
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.section-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.section-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.intro-text {
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 100px 1.5rem 3rem;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }

    .privacy-content {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-content {
        font-size: 1rem;
    }
}

/* ========================================
   Contact Page Styles
   ======================================== */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-intro {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-form-wrapper {
    background: var(--card-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(13, 71, 161, 0.1);
}

[data-theme="dark"] .contact-form-wrapper {
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(84, 114, 211, 0.2);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--background-light);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(84, 114, 211, 0.2);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.3);
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification i {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 100px 1.5rem 3rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATION STYLES
   Evita forced reflows usando clase CSS
   ======================================== */

/* Clase para controlar overflow del body cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden !important;
}