:root {
    --mac-bg: #fbfbfd;
    --mac-text: #1d1d1f;
    --mac-muted: #86868b;
    --mac-blue: #0071e3;
    --mac-blue-dark: #005cbf;
    --glass-bg: rgba(255, 255, 255, 0.72);
}

body {
    background-color: var(--mac-bg);
    color: var(--mac-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    letter-spacing: -0.02em;
}

/* Glassmorphism Navbar */
.mac-navbar {
    background-color: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mac-navbar .nav-link {
    color: rgba(0,0,0,0.8) !important;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 10px;
}

.mac-navbar .nav-link:hover {
    color: var(--mac-blue) !important;
}

.brand-icon {
    color: var(--mac-blue);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at center, #ffffff 0%, var(--mac-bg) 100%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, #1d1d1f, #434344);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones */
.btn-mac {
    background-color: var(--mac-blue);
    color: #fff;
    border-radius: 980px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-mac:hover {
    background-color: var(--mac-blue-dark);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

/* OS X Window Card Style */
.mac-window {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.mac-window:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 113, 227, 0.15), 0 1px 3px rgba(0,0,0,0.05);
}

.mac-titlebar {
    background: linear-gradient(to bottom, #f6f6f6, #e0e0e0);
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d2d2d7;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; border: 1px solid #e0443e; }
.dot-yellow { background-color: #ffbd2e; border: 1px solid #dea123; }
.dot-green { background-color: #27c93f; border: 1px solid #1aab29; }

.mac-content {
    padding: 40px 30px;
    text-align: center;
}

.mac-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--mac-blue), #5ac8fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark Section */
.dark-section {
    background-color: #000000;
    color: #f5f5f7;
    border-radius: 30px;
    margin: 40px 20px;
    padding: 80px 20px;
}

.btn-mac-light {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.btn-mac-light:hover {
    background-color: #ffffff;
    color: #000;
}

.mac-footer {
    background-color: #f5f5f7;
}
/* --- Modales estilo macOS --- */
.modal-content.mac-window {
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    background-color: var(--mac-bg);
}

.modal-content.mac-window:hover {
    transform: none; /* Desactivar la animación de flotar para los modales */
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Efecto blur en el fondo oscuro al abrir un modal */
.modal-backdrop.show {
    opacity: 0.5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Links del footer estilo Apple */
.mac-link:hover {
    color: var(--mac-blue) !important;
    text-decoration: underline !important;
}

/* Comportamiento del punto rojo para cerrar */
.dot-red:hover {
    filter: brightness(0.8);
}
.dot-red::before {
    content: '\00d7'; /* Símbolo X */
    display: none;
    color: #4d0000;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    font-weight: bold;
}
.dot-red:hover::before {
    display: block;
}